
-----------------------------------
beedub
Fri May 16, 2003 10:25 pm

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.

-----------------------------------
Tony
Fri May 16, 2003 11:31 pm


-----------------------------------
something based on following:



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


-----------------------------------
nate
Sat May 17, 2003 7:34 am

shooting
-----------------------------------
THis is the same as tony's but looks like its shooting


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
Sat May 17, 2003 9:07 am


-----------------------------------
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
Sat May 17, 2003 9:09 am


-----------------------------------
trying putting the picture in the same folder and u wont have to "look" for it

-----------------------------------
beedub
Sat May 17, 2003 9:25 am


-----------------------------------
there we go.. ty
