Bounce off wall and move in opposite direction
b_russell_757
Member Posts: 6
Hi, I am new to game salad and I am in the middle of creating a game similar to Galaga. I ran into a problem while making it. I have everything working but, the enemy ship needs to be able to bounce in the opposite direction once it hits a wall. So far what I have is the enemy moving on its own towards a wall and once it hits it, it keeps bouncing off the same wall. I am trying to get it to bounce from left to right. If anyone could help me it would be greatly appreciated.
Comments
if collides with wall do
change rotation to rotation+180
I think this is what you want... good luck
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
move in 180 degree direction, then a rule that says if it overlaps or collides with wall bounce of wall, then rotate to angle 0 and move in direction 0 but it did not do anything.
If so I'd check out the Alien Conquerors template located here:
http://gamesalad.com/manuals
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page