Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / the object collision stuffs up when the collision flag in the make object collision box is one

Author
Message
kfoong
23
Years of Service
User Offline
Joined: 28th Jan 2003
Location: Australia
Posted: 14th May 2003 12:13
Why does it do that? Here is a little snippet:


sync on : sync rate 60
hide mouse
autocam off

make object box 1,500,50,50
make object box 2,500,50,50
make object box 3,50,350,50
make object sphere 10,50

position object 1,0,0,0
position object 2,0,-300,0
position object 3,-225,-150,0
position object 10,-170,-245,0

color object 1,RGB(255,0,0)
color object 2,RGB(255,0,0)
color object 3,RGB(255,0,0)


make object collision box 10,-25,-25,-25,25,25,25,0:`*
make object collision box 1,-250,-25,-25,250,25,25,0
make object collision box 2,-250,-25,-25,250,25,25,0
make object collision box 3,-25,-175,-25,25,175,25,0
do

print get object collision x()
print get object collision y()
s# = s# / 1.3
x# = x# + s#

if leftkey() then s# = s# - 0.8
if rightkey() then s# = s# + 0.8
if object collision(10,0)>0
dec x#,get object collision x()
dec y#,get object collision y()/10
if get object collision y()0 then grav#=0
endif

if upkey() and grav#=0 and get object collision y()
Quote from my brother:
Quote: " Patience is a virtue... I know that but how does that help me? "

http://www.stellarblue.vze.com/
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 14th May 2003 12:39
Its incomplete...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
kfoong
23
Years of Service
User Offline
Joined: 28th Jan 2003
Location: Australia
Posted: 14th May 2003 13:39
stupid forums ,



just change the collision flag in the make object collision box for object 10

Quote from my brother:
Quote: " Patience is a virtue... I know that but how does that help me? "

http://www.stellarblue.vze.com/

Login to post a reply

Server time is: 2026-07-11 12:03:17
Your offset time is: 2026-07-11 12:03:17