AIMER
Author |
Message |
beedub
|
Posted: 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
|
|
|
Tony
|
Posted: 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
|
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
nate
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
Posted: Sat May 17, 2003 9:25 am Post subject: (No subject) |
|
|
there we go.. ty |
|
|
|
|
|
|
|