Computer Science Canada

AIMER

Author:  beedub [ 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.

Author:  Tony [ Fri May 16, 2003 11:31 pm ]
Post 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

Author:  nate [ 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

Author:  beedub [ Sat May 17, 2003 9:07 am ]
Post 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...

Author:  kythoon [ Sat May 17, 2003 9:09 am ]
Post subject: 

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

Author:  beedub [ Sat May 17, 2003 9:25 am ]
Post subject: 

there we go.. ty


: