Zenassem/Zircher: I follow what you're saying, but I am not certain on how to implement. Do you know of an example I can draw from?
Here's some simple code I threw together that shows what I'm trying to do. It's just a cone hitting a sphere and when that happens I'd like an explosion (made with ExGen) to occur...Clear as mud?
` Explosion test routine
hide mouse
sync on
cls
` Startup variables
x1=50
y1=0
z1=0
` Load explosion pics here
` Make player
make object cone 99,5
yrotate object 99,180
` Make object for player to collide with
make object sphere 98,10
position object 98,50,50,0
` Set camera position
position camera 60,45,-80
point camera 60,45,0
set global collision on
` Main Loop
do
set cursor 0,0
print "FPS: ",screen fps()
set cursor 200,0
print "Use ARROW KEYS to move"
` Player controls
if rightkey() then x1=x1+1
if leftkey() then x1=x1-1
if upkey() then y1=y1+1
if downkey() then y1=y1-1
if fire = 0 and spacekey()=1 then fire = 1: bx=x1:by=y1+3:bz=xz
` Keep player on screen
if x1>120 then x1 = 120
if x1<0 then x1 = 0
if y1<0 then y1=0
if y1>90 then y1=90
` Check for player hitting object
if object collision(99,0)=98 then set cursor 450,0:print "Collision"
` set explosion routine here
` Update player\meteor location on screen
position object 99, x1,y1,z1
` Keep camera in same position
position camera 60,45,-80
point camera 60,45,0
sync
loop
PC Specs: AMD 1800+ 512M DDR, Radeon 128meg DDR - DB v1.13
To DB or not to DB............duh DB!