Incorrect type of property?(SOLVED)

Why are you both setting the position and doing go.animate() every frame?

It’s worth noting that if an animation is running and you try to animate the same property again before the first animation has finished nothing will happen. You need to do go.cancel_animation() before starting a new animation if you want to be absolutely sure the animation will play.

PS Use the shortcut “.” instead of go.get_id() to reference the game object itself:

go.animate(".", "position.y" ....)
1 Like