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

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




PostPosted: Fri May 16, 2003 10:25 pm   Post subject: AIMER

hi im trying to make an aimer for a 1st person shooter game... can ne1 point me in the right direction? Like i want to make the aimer (crosshair) go where the cursor of the mouse goes.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri May 16, 2003 11:31 pm   Post subject: (No subject)

something based on following:


code:

View.Set("offscreenonly")

var x,y,b:int

loop
Mouse.Where(x,y,b)
drawoval(x,y,15,15,red)
View.Update
cls
end loop
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
nate




PostPosted: Sat May 17, 2003 7:34 am   Post subject: shooting

THis is the same as tony's but looks like its shooting

code:

View.Set("offscreenonly")

var x,y,b:int

loop
Mouse.Where(x,y,b)
drawoval(x,y,15,15,red)
View.Update
if b = 1 then
for i:1..30
drawfilloval (x,y,i,i,blue)
View.Update
end for
cls
end loop


-Nate
beedub




PostPosted: Sat May 17, 2003 9:07 am   Post subject: (No subject)

ty.. thats exactly what i needed.... my problem now is... for some reason.. when i access the C:\ it says that "c" has not been declared.. this is when i am putting... a pciture onto it...
kythoon




PostPosted: Sat May 17, 2003 9:09 am   Post subject: (No subject)

trying putting the picture in the same folder and u wont have to "look" for it
beedub




PostPosted: Sat May 17, 2003 9:25 am   Post subject: (No subject)

there we go.. ty
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  [ 6 Posts ]
Jump to:   


Style:  
Search: