Oh, I was just testing that to see if it made any difference, my MAIN problem is the backdrop screen when I go too low in my level.
Quote: "You are doing 'goto Start' if the player 'falls off the map' right?
Your 'Start:' is at the beginning of your program. If you want to do it that way, you need to undeclare all your physics stuff and all your meshes before you 'goto Start'."
How would I go about like phy off? Or deleting the static and dynamic commands? Anyone? or phy gravity off
A small change in the code by the way:
phy start:sync on:sync rate 60:autocam off:phy set gravity 0,-80,0
position camera 0,5,-20
start:
for c=1 to 10000
if object exist (c) then delete object c
next c
rem player
make object sphere 1,20
position object 1,-30,40,-40
phy make rigid body dynamic sphere 1
rem other objects (static)
load object "C:\Users\Dollie\Desktop\Game\map1.x",2
make object box 3,20000,1,20000
position object 2,0,0,0
position object 3,0,-800,0
rotate object 2,90,0,0
scale object 2,5000,5000,5000
ghost object on 2,1
for c=2 to 3
if object exist (c)
phy make rigid body static mesh c
endif
next c
do
phy add rigid body force 1,0,-5,0,2
x=object position x(1)
y=object position y(1)
z=object position z(1)
angx=object angle x(1)
angy=object angle y(1)
angz=object angle z(1)
position camera 0,object position x(1),object position y(1)+200,object position z(1)
point camera 0,object position x(1),0,object position z(1)
if upkey()=1 then phy add rigid body force 1,0,0,5,2
if downkey()=1 then phy add rigid body force 1,0,0,-5,2
if leftkey()=1 then phy add rigid body force 1,-5,0,0,2
if rightkey()=1 then phy add rigid body force 1,5,0,0,2
if object hit (1,3)
goto start
ENDIF
phy update
sync
loop
EDIT:
I solved the bluescreen, now only need help with the death
My new code: (I simply rasied the entire map so it doesn't get below)
phy start:sync on:sync rate 60:autocam off:phy set gravity 0,-80,0
position camera 0,5,-20
start:
for c=1 to 10000
if object exist (c) then delete object c
next c
rem player
make object sphere 1,20
position object 1,-30,2040,-40
phy make rigid body dynamic sphere 1
rem other objects (static)
load object "Maps\Map1.x",2
make object box 3,2000000,1,2000000
position object 2,0,2000,0
position object 3,0,800,0
rotate object 2,90,0,0
scale object 2,5000,5000,5000
ghost object on 2,1
for c=2 to 3
if object exist (c)
phy make rigid body static mesh c
endif
next c
do
phy add rigid body force 1,0,-5,0,2
x=object position x(1)
y=object position y(1)
z=object position z(1)
angx=object angle x(1)
angy=object angle y(1)
angz=object angle z(1)
position camera 0,object position x(1),object position y(1)+200,object position z(1)
point camera 0,object position x(1),0,object position z(1)
if upkey()=1 then phy add rigid body force 1,0,0,5,2
if downkey()=1 then phy add rigid body force 1,0,0,-5,2
if leftkey()=1 then phy add rigid body force 1,-5,0,0,2
if rightkey()=1 then phy add rigid body force 1,5,0,0,2
if object hit (1,3)
goto start
ENDIF
phy update
sync
loop
I want coke, not Pepsi!