"Move To" Sometimes Sends Actors Flying Off Screen

MetzoPainoMetzoPaino Member Posts: 195
edited January 2012 in Working with GS (Mac)
My menu enters the screen by coming in from the side with a Move To behaviour, but sometimes the actor will just keep going.

Why is this? Obviously I can't release an app where this is a regular occurrence.

Comments

  • ultimaultima Member, PRO Posts: 1,207
    edited January 2012
    check your physics =) also sometimes it only happens on preview, but not on device when it's "start of the scene" things, probably has to do with how fast each script loads.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Yes as uptimisitk said use interpolate. Especially for a menu

    cheers
  • MetzoPainoMetzoPaino Member Posts: 195
    I'm not using any physics in the game, and it has happened on the device though not as often.

    I guess i'll give interpolate a go, though it'll make a couple of things I'm doing with the menu more annoying.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Yeah if your not using any physics you def want to use interpolate. You can uncheck moveable when using interpolate
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited January 2012
    Sorry to be the "devil's advocate" here guys but as much as I love interpolate I can't see what wrong with good ol' Move To behaviour...

    MetzoPaino: check you've got "Relative to" set to scene and not actor.


    ----------------------------------------------
    http://davidgriffinapps.co.uk/

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • tutysestutyses Member Posts: 134
    Hello, it depends on how its exactly what you are doing, the problem may be on how the move to behavior works.
    If you have 2 actor "A" and "B", and A follows B, it will get the position of B and move A with the angle it needs to reach B. When you move B it check again the position and Re make the Angle, but if you change A position it doesnt refresh and it will have the same angle that it had before you move it, this will result in the actor moving off the screen
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited January 2012
    @tutyses : Je ne comprends pas... (that gets me by in France ;-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • tutysestutyses Member Posts: 134
    I guess i suck explaining, people never understand what i m trying to say.
    It was the case when you use the Move To in an actor, which has to follow another one, (constraining x and y of th actor to a game attribute)
    The move to makes an angle with the position of the 2 actors, this angle is the one that the actor will use to go to the position you want. If you change the actor position, the move to position will not refresh, and because of that , the angle wont refresh either causing the actor to move with the old angle, making him not moving to the desire position.
    It doesnt matter, its not the case of Metzopaino
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited January 2012
    I'm sure you don't suck at explaining @tutyses cos I understood what you meant this time around... no worries. Sorry if my light-hearted comment seemed sarcastic, it wasn't meant to be (I've been in a comical mood tonight for some reason.) :-)

    And even if it's not applicable to @MetzoPaino no worries again, at least you tried to help, which is the main thing.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • tutysestutyses Member Posts: 134
    I explained it because i dont know how MetzoPaino made his project, and also because its a common problem with the Move to behavior.
    oh and i didnt care about the sarcastic comment so dont worry :P
Sign In or Register to comment.