Bulldrome
Member
Hello, I'm new to the forums and GMS2 in general so forgive my inexperience.
So I'm currently having a problem with getting the angle of an object to work correctly. I'm trying to have this object, a shield, move around the player by using the directional keys. Up would set its angle to 90 degrees, Right would set it to 0 degrees, Down and Left would set it to 225 degrees, etc.
Right now, the way I have the object coded, the object reacts the way it's supposed to with the Up and Right key but when pressing Up and Right, the object simple does nothing, its unresponsive. Is there just some simple thing I'm missing?
Any help would be appreciated.
(Also I know using a block of If statements isnt the best practice, I'm just testing things out now)
So I'm currently having a problem with getting the angle of an object to work correctly. I'm trying to have this object, a shield, move around the player by using the directional keys. Up would set its angle to 90 degrees, Right would set it to 0 degrees, Down and Left would set it to 225 degrees, etc.
Right now, the way I have the object coded, the object reacts the way it's supposed to with the Up and Right key but when pressing Up and Right, the object simple does nothing, its unresponsive. Is there just some simple thing I'm missing?
Any help would be appreciated.
(Also I know using a block of If statements isnt the best practice, I'm just testing things out now)
Attachments
-
38.1 KB Views: 10