I have been working on my first game for awhile, but have run into a problem.
I want to make my character rotate 45 degrees left or right when I press the A or D key. Then when I release the key I want the character to un-rotate so it is facing straight ahead again.
any help in how to code this in java script is greatly appreciated.
Thanks.
Sorry, it wasn’t locked so i accidentally replied.
I will look for a newer thread for that or i will create a new thread if i don’t find what i need (kinda hard).
Btw what forum fits more for what i want to ask?