Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 shooting game
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
progrmmar




PostPosted: Sat May 15, 2004 3:14 pm   Post subject: shooting game

hi,
i am making shooting game. i need to hlep to disapear the man, like when i shoot to man how he disapear adn how new come. can some one plz give me the coad or thell me how can i do this?????
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sat May 15, 2004 3:30 pm   Post subject: (No subject)

code:

var x,y,b:int
Draw.FillBox(100,100,200,200,red)
loop
Mouse.Where(x,y,b)
exit when b = 1
end loop
cls


and when you click the mouse... the box disappears! isn't that amazing? Laughing
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
progrmmar




PostPosted: Sat May 15, 2004 9:06 pm   Post subject: I am not using mouse control

Yo Tony i am not using mouse control, i am using keyboard. My question was there is 3 man on screen one time and when i shoote one how he Disappear and how the new man appear
jonos




PostPosted: Sat May 15, 2004 10:15 pm   Post subject: (No subject)

You have to just make the guys, then cover the guys with a box that is the same colour as your background, then you just generate 2 random numbers within your run window boundaries and then move the guy to that point.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: