The behavior i need is :
on (sprite a) collision with (sprite b), move the sprite a to sprite b using lerp since i don't want it teleporting to the center of the sprite.
I want it so when the player picks up a power up, movement stops, player gets dragged to the center of the power up, sprite b gets destroyed, an animation happens and then movement is resumed. i have everything else but i can't figure out the expression's syntax.
Thanks in advance
Using a lerp expression, like you're asking:
SpriteA: Set position to (lerp(SpriteA.X,SpriteB.X,0.05), lerp(SpriteA.Y,SpriteB.Y,0.05))
Or, you could also move an object by using either the Tween or MoveTo behaviors.
Develop games in your browser. Powerful, performant & highly capable.
thanks for the reply. I'll try that out.
Can an object have the platform behavior and the tween behavior at the same time? i am not seeing the behavior in the behavior list and i am thinking it might be one of the other behaviors preventing this.
Tween and MoveTo behaviors are only supported in C3 runtime. I'm guessing you have your project set at C2 runtime.
oh. yeah i did. Had to, for some reason after the update the preview wasn't working on c3 runtime