Bounce off wall and move in opposite direction

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

  • -Timo--Timo- Member Posts: 2,313
    create a rule and say
    if collides with wall do
    change rotation to rotation+180
    I think this is what you want... good luck
  • b_russell_757b_russell_757 Member Posts: 6
    thank you very much for your input, however it still did not seem to work. I don't know if i did it right but what I have for my enemy actor is the following:

    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.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    edited July 2013
    Hi @b_russell_757, do you want the bounce effect your talking about to move your enemies across the screen from left to right, then bounce of a wall and move back to the left, etc, etc?

    If so I'd check out the Alien Conquerors template located here:
    http://gamesalad.com/manuals
  • b_russell_757b_russell_757 Member Posts: 6
    jamie_c thank you very much for the advice. this is exactly what i am looking for
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Cool! :)
Sign In or Register to comment.