Falling Objects
![knarovich](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
I am trying to make a game where objects are falling from the top of the screen to the bottom. I am having a hard time making objects do this. Could someone please help me??
Thank you
Thank you
Best Answer
-
DanDaMan123 Posts: 216
What you could do is make it so that the objects have a behavior to make them fall, like move, accelerate, scene gravity, etc. Then, in the scene that you want them to fall, you would have an actor that spawns these obstacles. Assuming that you don't want the objects all falling from the same spot, in the 'spawn actor' behavior you could specify that it spawns the actors x position with a randomizer.
Answers
Jamie
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Change Attribute Behavior
-Change Attribute "self.Postion.X" to "random(0,1024)"
The "0" and "1024" are your minimum and maximum possible X values.
Jamie
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page