Mouse/Touch following Actor Problem

AppsterAppster Member Posts: 112
edited November -1 in Working with GS (Mac)
Hi all, I have a problem here. I created an actor to follow a mouse (when inside). However when I move my finger too quickly the actor doesn't follows. How do I make a seamless movement where it always follows?

Comments

  • FangFang Member Posts: 33
    If you move too quickly, doesn't your finger/mouse slip outside the area by accident?
  • AppsterAppster Member Posts: 112
    Yes, so that's why it stop following. Any workaround methods on this?
  • FangFang Member Posts: 33
    Don't know if this'll work, this is purely guessing, but you could try the following:
    attribute pointer_in?, default value 1
    rule: when mouse is inside, change attribute pointer_in? to 1
    rule: when mouse is outside, change attribute pointer_in? to 0
    rule: when attribute pointer_in? = 1, move to ([mouse.pos.X], [mouse.pos.Y])
    I think that should do the trick, seeing as how it tells GameSalad that you're back inside when you are.
Sign In or Register to comment.