Character follows touch?

bgjoanbgbgjoanbg Member Posts: 17
edited November -1 in Working with GS (Mac)
Can someone please tell me how you can make an actor follow a touch (if you can). Im trying to make a platformer, and I want my guy to follow the touch without getting of the ground.

Comments

  • rebumprebump Member Posts: 1,058
    Restrict the Y movement if need be (so you don't lift the actor off the ground with a touch) and then follow the concepts set forth in:

    http://gamesalad.com/wiki/how_tos:gsc_mouse_movement

    The touch events work quite similarily to mouse stuff for general movement. If you plan on actually touching the character, then you may need to play with both "touch" and "inside" type touch events.
  • bgjoanbgbgjoanbg Member Posts: 17
    thanks, rebump! i'll try that out!
Sign In or Register to comment.