Gamesalad boomerang?

michaelclearymichaelcleary Member Posts: 3
edited November -1 in Working with GS (Mac)
I was wondering how I could throw a boomerang in one direction relative to the actor, and have it return to me. Any help is appreciated.

Comments

  • old_kipperold_kipper Member Posts: 1,420
    I would experiment with two actors. On that accels towards the second, and the second that accels towards 'home' when the first gets close.
  • michaelclearymichaelcleary Member Posts: 3
    I have the motion down, i just need to know how to make the boomerang move in the direction im facing instead of 1 direction all the time.
  • wormilwormil Member Posts: 127
    I have a global variable iDirection
    i give an initial starting direction, iDirection = 1 // right

    if( fire && iDirection = 1)
    move 0 direction
    if ( fire && iDirection = 2)
    move 180 direction

    so effectively you know which direction to spawn from etc, based on the direction you are facing.
  • michaelclearymichaelcleary Member Posts: 3
    im probs stupid, but i dont understand...
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
Sign In or Register to comment.