Hello,
I got some weird behavior with my gameObjects.
I got a game object with a sprite on it, with a simple code to make it move when pressing arrow keys:
(speed is set to 3)
float moveX = Input.GetAxis ("Horizontal");
float moveY = Input.GetAxis ("Vertical");
rigidbody2D.velocity = new Vector2 (moveX * speed, moveY * speed);
Everything is working fine when i test it.
Now, if I add an animation clip to this object by [create new clip] in the animation window.
If I Test again the game, then the gameobject will not move at all…I have to delete the animation in order to get the object moving again…
Why is that?