hi i was just wondering if anybody can help me with my problem? if so great and thanks
i am currently working on my college project i am making a top down shooter game i have it coded so that when the player presses WASD keys the sprites image changes to face the current direction the problem i am running into is that i have variables that are tied to the the methods that change the image to different directions to tell what position is currently in so i know which was to fire the bullets.
the problem is when i fire the bullet it goes the way i want it to go but when i change direction using the keyboard the bullet goes in the same direction as the player is facing like it should but thats a problem.
is there a way to when the user fires the bullets it can no longer be control by the keyboard i.e it just fire the way its facing and when the player changes direction the bullet still travels that way.
Any help would be greatly appreciated thank you.