Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling two moving things

Status
Not open for further replies.

quebasic2

Programmer
Dec 17, 2002
174
IN
I want to make a shooter program, but I don't know how to make my character move, and be able to watch the bullet move.
 
you just need a few variables

DIM manx%
DIM many%
DIM bulletx%
DIM bullety%
DIM bulletdirectionx%
DIM bulletdirectiony%

use INKEY$ to control the man, use the arrow keys and to track the bullet: during every loop add bulletdirectionx% to bulletx% and bulletdirectiony% to bullety%.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top