Gravity on an actor
Hey everyone, Game salad newbie here. I just recently joined the forums and I'm new to the Gamesalad program. I found a few tutorials on Youtube on how to create gravity on an actor. However, I can't seem to find any tutorials on what I'm trying to do. In my game, I have a spawning actor at the bottom of my screen. Every second or so, the actor spawns 3 random enemies in different directions upward. I'm trying to have those enemies shoot up at a certain height, then have gravity take them down. Right now the enemies just shoot up straight in the air and out of the scene. Sorry if this issue has been posted before, newb here lol
Thanks for the help!
Thanks for the help!
Comments
So in your case, whatever actor(s) you are spawning that shoot up in the air, add an Accelerate Behavior to them. Use a Direction of 270 to bring them back down and adjust the Acceleration as needed to get the effect you want.
Accelerate [direction & speed: whatever you have them set to]
Timer after 1 second
Accelerate [direction: 270] [speed: number greater than acceleration speed above] [relative to: scene]
You'll have to play around with the timer duration and the speed to get it right.