I wanted to create a simple 1hr program to play around with & branch off of but it is not working.
hide mouse
sync on
position camera 0,0,0
load object "target.x",1
rotate object 1,0,90,0
position object 1,0,0,500
scale object 1,5000,5000,5000
x# = rnd(200)
y# = rnd(200)
z# = 500
bullet = -2
make object sphere 2,0.5
position object 2,0,0,bullet
do
if upkey() = 1 then y# = y# + 1
if downkey() = 1 then y# = y# - 1
if leftkey() = 1 then x# = x# - 1
if rightkey() = 1 then x# = x# +1
if spacekey() = 1 then go = 1
if go = 1 then bullet = bullet + 1
if object collision(1,2)>0 then end
color backdrop rgb(x#,y#,z#/5)
position object 1,x#,y#,z#
position object 2,0,0,bullet
sync
loop
It won't detect there collision & I've tried if object hit(1,2)>0 with no luck either. Any ideas?