My game is like "space invader". can someone tell me how can i move the ship at the same time i can also shoot bullets.. . TIA

Recommended Answers

All 2 Replies

The best solution is to use threads -- but Turbo C is too old for that. Either get a new compiler (free) or forget about your program.

Either get a new compiler (free) or forget about your program.

You could queue up the keystrokes and process them in sequence. Provided they're processed quickly enough, the end result should be comparable to a threaded solution. It's not like games weren't written with Turbo C when it wasn't too old. ;)

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.