Spawn item, constrain and then fall
butterbean
Member Posts: 4,315
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
I also have gravity added to the scene as well
Comments
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.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left