Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Move to Help

At the start of my game I have my actor starting off screen, then when it starts I would like him to move into the screen and then move up to the starting position. The problem I have is that when I start my actor moves left and then keeps going and does not stop.

I have it setup currently like this


  • Braydon_SFXBraydon_SFX Posts: 8,959Member, Sous Chef, PRO, Bowlboy Sidekick GameSalad Employee
    edited November 2015

    Notice that your Move To behavior is in a rule that fires when self.start move = 0. That means that rule is only active when self.start move = 0. Inside that you, you have the Move To behavior and then a Change Attribute that changes self.start move to 1. This means that the rule is no longer active. You need to change self.start move to 1 WHEN the actor is at x position 16 and y position 0. Checking run to completion may do the trick, but I know Move To is buggy... I almost always use Interpolate to move my actors on screen.

  • RCT_GamesRCT_Games Posts: 97Member, PRO

    @Braydon_SFX Thanks the interpolate is doing what I need it to do.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Posts: 9,913Member

    @RCT_Games said:
    @Braydon_SFX Thanks the interpolate is doing what I need it to do.

    Yes but note your mistake there in your logic so you understand why it didn't work. That is improper logic and to make good games you need to understand proper logic not just skip to using another behavior.

  • RCT_GamesRCT_Games Posts: 97Member, PRO

    @Lost_Oasis_Games Yeah I understood and changed it, but it was still not working right. It kept moving past the point or going the wrong direction even when the change attribute was turned off. The interpolate was giving me a much more constant result so I just am using that.

    Thanks for the help though.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Posts: 9,913Member

    It's best to embed a move to behavior I a rule that cuts it off once it reaches the position.

Sign In or Register to comment.