How do I make my actor falls and land?

LynkkLynkk Member, PRO Posts: 11

In my game, an actor is spawning at random location, but I would like to see it fall from the top.

I followed the great tutorial by gshelp:

So the 'code' looks like that:
http://i.imgur.com/G5Nc4r3.jpg

I tried animation but it is limited to the size of the actor.

Can this be done? Basically each time the scene initiate I want to see my actor falls from the 'ceiling' to the 'ground'

Thanks for the help!

Comments

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

    Add an Accelerate Behavior to your actor moving it down the screen (270) at whatever speed you want.

  • LynkkLynkk Member, PRO Posts: 11

    Well the problem is they spawn directly at their 'landing' location. So if i add this behavior they just fall down the scene from their spawning location :open_mouth:

  • SmokeyAce73SmokeyAce73 EarthMember Posts: 370

    Change the spawn Y location

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

    Well I'm not sure what to offer here, seems like the obvious would be to start them at the top of the screen knowing they are going to be falling...

  • LynkkLynkk Member, PRO Posts: 11
    edited April 2014

    Okay because of your advices, I almost found a way, the problem is they overlap :open_mouth:

    I put the object on top of the same scene, and created a new table with the landing Y values. Then i pretty much followed the same tutorial from gshelp but instead of Spawn, I used Interpolate. It's working but they overalp. Sometimes it choses the same Y axis. I don't understand why, I will investigate!

  • LynkkLynkk Member, PRO Posts: 11

    Arrgg this is driving me nuts, the add/remove Row doesn't work on the new tables. The object keeps falling straight. If I turn it Off, it's working but they tend to overlap :(

  • LynkkLynkk Member, PRO Posts: 11

    The add/remove row attribute does not work well. I have a table with 15 rows. But sometimes a couple, if not all, of my 3 object is just going straight to the bottom of the screen (value 0). Any ideas?

    My code:
    http://i.imgur.com/JNZi0kf.jpg

    I'm trying to avoid them to overlap (same value)

    Thank you

  • LynkkLynkk Member, PRO Posts: 11

    I give up :confounded:

Sign In or Register to comment.