heres a simple damage flash routine, its a little messy but dinners about ready
ink rgb(255,0,0),0
box 0,0,8,8
get image 1,0,0,7,7
cls
autocam off
rem make world
for i=1 to 150
make object cube i,rnd(10)
color object i,rgb(rnd(255),rnd(255),rnd(255))
position object i,50-rnd(100),0,50-rnd(100)
next i
make object sphere 160,-300
color object 160,rgb(120,120,120)
`make plain
make object plain 200,100,100
texture object 200,1
set object light 200,0
ghost object on 200
hide object 200
set camera range 0.1,2000
`run world
do
control camera using arrowkeys 0,0.1,1
set object to camera orientation 200
position object 200,camera position x(),0,camera position z()
move object 200,0.5
if spacekey() and t<timer()
flag=1-flag
t=timer()+200
endif
if flag
show object 200
else
hide object 200
endif
text 0,0,"press space to toggle hit"
loop
hope thats some help.
Mentor.
PC1:XP, P4 3ghz, 1gig mem, 3x160gig hd`s, Radeon 9800pro, 6 way sound.
PC2: Linux, AMD 2ghz, 512mb ram, Nvidia GeForce4mx, 16 bit SB.
PC3: XP, laptop, intel 2.6ghz celeron, ATI 9000igp, 256mb