I want my turret to try to be at the same altitude as the plyer by moving up and down. It should after 2 seconds stop moving and shoot.
http://postimg.org/image/ibevgazsn/
http://postimg.org/image/3ynqch4bv/¨
Here is my event sheets. The problem is that the the turret just moves to the ground and never shoot instead of moving up and down according to the player and shooting sometimes. Why does it do this?
Develop games in your browser. Powerful, performant & highly capable.
you are setting the vectorY of the movement to the y-position of the sprite..
so if the sprite is at y=205 the 8direction will move 205px down per second..
You are alos setting the timer 650 to restart every tick, so it will never end,