How to constrain an actor ontop of another actor & make it follow it

i followed this video of an endless runner , my game is set up just like Jamie Cross's video

Now what I'm trying achieve is I want an actor to spawn on top of each platform one at a time , is this possible? Thanks :)

Comments

  • ArmellineArmelline Member, PRO Posts: 5,408

    Any reason you can't spawn the actor and apply the same movement behaviours to it as the one you want it to follow?

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @Armelline I tried that, it doesnt spawn right on top of the platform also it doesn't spawn one at a time

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    bump

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Having the platform spawn additional actors on top of it and moving them at the same speed (like a coin or something) should work fine as @Armelline mentions. What about that is not working for you exactly?

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @jamie_c I'm trying to spawn a 60 by 60 px actor on top of the platforms (constrain it 200 px up everytime) that I made 120 px. The 60 by 60 actors aren't spawning properly at all. Hope you understand :) . Thank you

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    bump?

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    What do you mean with "aren't spawning properly at all"? Can you post a screenshot of how they are spawning? And maybe a shot of the spawning rules.

  • http_gamesaladhttp_gamesalad Member Posts: 1,340
    edited April 2015

    @NipaDidIt
    (This is set up in my star actor the 60 by 60)
    Image and video hosting by TinyPic

    Image and video hosting by TinyPic

    (This is set up in controller actor)
    Image and video hosting by TinyPic

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    Does the platform have the same movement rules?

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @NipaDidIt yes it does

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    Ok. I don´t really understand the "not spawning properly" part. What´s the problem? Can you maybe get a screenshot when you preview the game, and point out what´s not right?

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @NipaDidIt

    I'm trying to spawn the a star on top of every black line that spawns

    Image and video hosting by TinyPic

  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2015

    @http_gamesalad said:
    I'm trying to spawn the a star on top of every black line that spawns

    In the black line actor place a rule that spawns the star actor.

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    Like @Socks said. I'd put the spawn behavior In the platform actor.

Sign In or Register to comment.