"Move To" Function - Actors "jumps" to position
Cluv
Member Posts: 229
Hey!
I am using "Move To" to move my actors slowly across the screen. It works fine, except when the actor gets close to the destination. Whenever the actor gets within a short distance of the position, it "jumps" and locks into place instead of moving smoothly. I am concerned that this will affect the animation, when I skin the objects later. Does anyone have any suggestions as to how to make it move more smoothly?
Thanks!
C
I am using "Move To" to move my actors slowly across the screen. It works fine, except when the actor gets close to the destination. Whenever the actor gets within a short distance of the position, it "jumps" and locks into place instead of moving smoothly. I am concerned that this will affect the animation, when I skin the objects later. Does anyone have any suggestions as to how to make it move more smoothly?
Thanks!
C
Best Answers
-
Braydon_SFX Posts: 9,273Use Interpolate instead.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
-
jonmulcahy Posts: 10,408yes, use interpolate, it's much more accurate.
you use two rules:
interpolate self.position.x to x coordinate
interpolate self.position.y to y coordinate
Answers
Hi i want to move a platform when the player is standing on it. If the player jumps or gets off the platform (i.e. not in contact with it) i want the platform to stop .The platform shld move frm left to right then back again like a normal platform i have tried using interpolate but it only stops at the end dosent stop midway tried the move but it dosent move properly i.e. it moves from left to right but dosent move back
ANy help would be much appreciated hope i explained it clearly