How to make an actor snap back to the original x position but a variable Y?

LordTarantorLordTarantor Member, PRO Posts: 890
edited November -1 in Working with GS (Mac)
Ok let me explain that better...
I have an actor that you can drag but when it is released I want it to go back to x 240 (I already have that done).
The Y is where I need help. I want it to snap to a position in Y from Y80 to Y260 depending on where it was released. If it was closer to the 80 then to the 80 and so on.

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    Take note of its Y position when you let go then simply do a rule if Y < or = to 80 change position to 80 other wise if position Y < or = to 240 change position to 240.

    Darren.
  • LordTarantorLordTarantor Member, PRO Posts: 890
    Thanks Darren, I almost drown in that one.
Sign In or Register to comment.