B
binguschondo
Guest
Hey all-Let me start off by saying I am SUPER new to GameMaker and coding in general. I'm using Drag n' Drop for my first project as I'm sure it's a lot easier to learn.
Some background: The game is set in space, playing as a ship. There is no gravity. I am very early on to the project.
Outside of combat, the player can move around freely with Asteroid-esque controls. However, when I hold my mouse down, a cursor appears at the first point I held it at and the player's motion is halted. This is how the combat in the game will work - shooting causes the player to stop and (hopefully) enter a state of controlled orbit around the cursor. *Note, the cursor object stays in the first position the mouse was held down until the button is released. Using WASD controls, A and D would be used to guide yourself around this invisible circle centered around the cursor. The player could of course choose to not rotate at all, but they will not be able to dodge attacks or move forward/backward until the LMB is lifted.
So far, I've got basic movement outside of combat down and I've gotten the player to halt and lose the ability of accelerating in this state. What I do not have is the means to provide the relative rotation about the cursor object.
I've found a free asset on the store that focuses on relative rotation, but it's not working quite how I'd like it to... or at all, for that matter.
If anyone can offer any help on this, it'd be greatly appreciated! If you need further elaboration or any other details or resources, I'll be happy to give it.
Thank you!
Some background: The game is set in space, playing as a ship. There is no gravity. I am very early on to the project.
Outside of combat, the player can move around freely with Asteroid-esque controls. However, when I hold my mouse down, a cursor appears at the first point I held it at and the player's motion is halted. This is how the combat in the game will work - shooting causes the player to stop and (hopefully) enter a state of controlled orbit around the cursor. *Note, the cursor object stays in the first position the mouse was held down until the button is released. Using WASD controls, A and D would be used to guide yourself around this invisible circle centered around the cursor. The player could of course choose to not rotate at all, but they will not be able to dodge attacks or move forward/backward until the LMB is lifted.
So far, I've got basic movement outside of combat down and I've gotten the player to halt and lose the ability of accelerating in this state. What I do not have is the means to provide the relative rotation about the cursor object.
I've found a free asset on the store that focuses on relative rotation, but it's not working quite how I'd like it to... or at all, for that matter.
If anyone can offer any help on this, it'd be greatly appreciated! If you need further elaboration or any other details or resources, I'll be happy to give it.
Thank you!