Sugar_Studio
Member
Hi All,
First post here and I need your expertise. I'm trying to make a 2d shooter following some spielding tutorials on youtube with modifications along the way. Currently i have the gun object using recoil with lengthdir x/y while also using mouse point direction for the image angle of the gun itself. Essentially I want to add a system where when a player holds down mb_left, the gun’s lengthdir xx/yy coordinates will continually change by 1 each frame, moving the gun upwards along an arcing path until it reaches 90 degrees pointing straight up.
I’ve tried doing this through an alarm and i can get it to shift by y degrees, but it’s not a continual increase, e.g. it just moves back and forth from the mouse point direction and mouse point direction + whatever y I entered.
Does that make any sense? Can someone point me in the right direction? I’m trying to learn GML as my first real programming so even if you can point me in the right direction it would definitely be a big help. Thanks
-SS
First post here and I need your expertise. I'm trying to make a 2d shooter following some spielding tutorials on youtube with modifications along the way. Currently i have the gun object using recoil with lengthdir x/y while also using mouse point direction for the image angle of the gun itself. Essentially I want to add a system where when a player holds down mb_left, the gun’s lengthdir xx/yy coordinates will continually change by 1 each frame, moving the gun upwards along an arcing path until it reaches 90 degrees pointing straight up.
I’ve tried doing this through an alarm and i can get it to shift by y degrees, but it’s not a continual increase, e.g. it just moves back and forth from the mouse point direction and mouse point direction + whatever y I entered.
Does that make any sense? Can someone point me in the right direction? I’m trying to learn GML as my first real programming so even if you can point me in the right direction it would definitely be a big help. Thanks
-SS