Legacy GM Move the player in the opposite direction of the shot

C

Christian Furtado

Guest
I'm creating a platform game and I wanted your help. well, I'd like to move the player in the opposite direction in which he's shooting. Ex: shoot right and move the player to the left. I would like to move the player in all 8 shooting directions. I'm a beginner in GM:S and I really need your help.
 

Slyddar

Member
Lots of ways to do it, but it can depend on what code you are using to create the bullet/shot, and how you are controlling the player. i.e using hspeed or your own hsp variables. What code do you have for the creation of the bullet/shot now?
 
C

Christian Furtado

Guest
=====>https://supernaught.itch.io/slugcaster

I'm traveling and I'll be gone for a few days, but I'll leave the link for a game that has the same mechanics I'm trying to implement. I'm a beginner and I do not have much affinity with GM: S. if you can recommend an engine or a code to study I will be very grateful!
 
Top