still having trouble getting an actor to stop!

SparkyidrSparkyidr Member, PRO Posts: 2,033
edited November -1 in Working with GS (Mac)
so I know the move to behaviour is a bit flakey (at best)
so I decided to re-tool a camera move on my DONK app by using accelerate towards

so I have my camera move actor that has the camera tied to it.
I then have a behaviour that when I click an arrow onscreen it sets a "gamescreen" attribute to say, 1.
When gamescreen = 1 I have it accelerating towards a point to the left.
Then to make it stop, I have a stopper actor. When the cameramove actor overlaps/colides with the stopper, I am telling it to set my self.linear.x and self.linear.y both to 0, and set the x and y of the camera move actor to (140x240)

In theory this should make the cameramove actor stop at 140x240 right???? or have I missunderstood something?

Anyways... it doesn't. The actor does indeed flick to 140x24. but it kinda moves left and right in a bouncy kind of way as though it were attached by elastic to the 140x240 point.

meh....fed up with it now :o)

Comments

  • LumpAppsLumpApps Member Posts: 2,881
    Hi!
    Try the Move behavior with speed 0 in a rule.
    As you can read in the how to: http://gamesalad.com/wiki/how_tos:know_which_movement_to_use

    'This behavior will override ALL other linear movement related behaviors and even gravity as long as it is active.'
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    Do it like Uri Geller. When he was in the hungarian TV and spoke broken hungarian (yes, he is hungarian) then he said the word "mukodj" ("müködj" = "function" /as a command/) and it functioned :-p

    Maybe it will work for you too :-p
  • mithraweptmithrawept Member, PRO Posts: 167
    LudwigHeijden's right, Move with speed to 0 works.
Sign In or Register to comment.