Cannon rotation problems...
I'm really struggling with this. I just can't seem to get this to work for me today.
My game is in a profile layout. I have a cannon at the center at the bottom. Bricks fly in from the top of the screen and the player shoots the cannon at the bricks to beat the level. Simple, right?
I want my cannon to rotate to where the player shoots towards. Since the game is in profile mode, the cannon .png file is obviously facing to the right.
When the level starts, i want the cannon facing upwards (towards where the bricks are flying in from) but still be able to rotate to where the player shoots. As it starts now, the paddle is rotated to the right before the player clicks/touches anywhere.
How do I fix this?
My game is in a profile layout. I have a cannon at the center at the bottom. Bricks fly in from the top of the screen and the player shoots the cannon at the bricks to beat the level. Simple, right?
I want my cannon to rotate to where the player shoots towards. Since the game is in profile mode, the cannon .png file is obviously facing to the right.
When the level starts, i want the cannon facing upwards (towards where the bricks are flying in from) but still be able to rotate to where the player shoots. As it starts now, the paddle is rotated to the right before the player clicks/touches anywhere.
How do I fix this?
Comments