Spawn item, constrain and then fall

butterbeanbutterbean Member Posts: 4,315
edited November -1 in Working with GS (Mac)
So if you want to spawn an item at a random place on the screen, have it sit there for a moment, and then animate falling, how could you do this?

I also have gravity added to the scene as well :)

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    The constrain then fall should be pretty easy, just put a timer on the object that says

    For 2 seconds accelerate up at the same speed of gravity, so if your gravity was set at 100, accelerate at 90 degrees at speed 100.

    That will counteract gravity for 2 seconds, then let it fall.

    As far as the random spawning, just create a spawner that spaws at a random X and Y coordinate every x seconds.
  • butterbeanbutterbean Member Posts: 4,315
    Cool, thanks! :)
Sign In or Register to comment.