Move to Help
RCT_Games
Member, PRO Posts: 97
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
Comments
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.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
@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.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
@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.
It's best to embed a move to behavior I a rule that cuts it off once it reaches the position.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS