U
Undead Hero
Guest
This is kinda hard to describe, but I'm completely stumped and could use some direction.
Essentially, I have an object moving to the right shmup style. You use the mouse to direct this object up and down on the y axis. Currently when you click inside the play area, this object matches the mouse_y and sticks to it.
What I'm trying to do, is make the object angle up and down as it travels up and down, to look like steering. The angle would gradually increase based on the speed, so it would angle more sharply if you quickly drag up or down. I tried making it point towards the mouse, but since it sits on the mouse's y position that doesn't work. I guess I just don't know how to make the game recognize whether it's traveling up or down, and at what speed.
Essentially, I have an object moving to the right shmup style. You use the mouse to direct this object up and down on the y axis. Currently when you click inside the play area, this object matches the mouse_y and sticks to it.
What I'm trying to do, is make the object angle up and down as it travels up and down, to look like steering. The angle would gradually increase based on the speed, so it would angle more sharply if you quickly drag up or down. I tried making it point towards the mouse, but since it sits on the mouse's y position that doesn't work. I guess I just don't know how to make the game recognize whether it's traveling up or down, and at what speed.