Hello,
I am making a 2d shooter game, and I dont knnow how to make the player's ship move left and right
with left and right arrow keys... please help me. I have to finish this project before 6th... please help
Vikram Sehgal 0 Light Poster
Recommended Answers
Jump to PostWhat have you got so far? What libraries are you using for I/O (Win32API/SDL/SFML/etc)?
Typically you will use your I/O library to poll for events, then detect the arrow key events and use them to modify a variable that holds the ship's position. How this is done varies by library, …
Jump to PostWell, you cannot expect that you are going to learn something by osmosis - you have to experiment and try for yourself. That does not excuse an incompetent teacher, of course.
Otherwise, you still have not mentioned a system. Linux? Windows?
Are you provided any existing code (or libraries)? Suggestions …
All 7 Replies
Labdabeta 182 Posting Pro in Training Featured Poster
Vikram Sehgal 0 Light Poster
Vikram Sehgal 0 Light Poster
L7Sqr 227 Practically a Master Poster
Vikram Sehgal 0 Light Poster
Vikram Sehgal 0 Light Poster
Vikram Sehgal 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.