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 Discussion / collision detection ( UPDATED )

Author
Message
James Bond
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location:
Posted: 27th Jul 2004 13:16
my collision detection code is not working properly ... please check this code and remove all the errors for me thanks ..... u can use this file as my car ( cube.x ) http://www.geocities.com/rehansites2/carx.zip

CODE:
sync on
sync rate 60
hide mouse
for x = 1 to 10
make object cube x,100
position object x,rnd(2000),0,rnd(2000)
next x
load object \"c:\\cube.x\",11
Set object collision to spheres 11

do
If Object collision(11,0)>0 then position object 11,X#,0,Z#
X# = Object position x(10)
Z# = Object position z(10)
if rightkey()=1
y=wrapvalue(y+1)
`angley#=wrapvalue(angley#+5.0)
endif


if leftkey()=1
y=wrapvalue(y-1)
`angley#=wrapvalue(angley#-5.0)
endif

if upkey()=1
move object 11,10
endif

if downkey()=1
move object 11,-10
endif

`rotate both camera and object
yrotate object 11,y
yrotate camera y

` make the camera to follow the object in a circular manner
position camera object position x(11)-(sin(object angle y(11))*10),object position y(11)+3,object position z(11)-((cos(object angle y(11)))*10)
xrotate camera 2


sync
loop
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 27th Jul 2004 16:47
You posted this one minute after the last post on exactly the same subject.

Please, please stop spamming...for your own sake.

Besides, your request is totally unreasonable. If you look at all the posts over the last couple of days, you are basically asking people to write a game for you.

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
James Bond
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location:
Posted: 27th Jul 2004 18:36
na i'am just asking for help .. i just want them to correct my codes ........ and trying to solve my problems ...... this is the reason for which this forum has been created!!??
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 27th Jul 2004 21:31
Whatever your own spin is, you have been told to sort yourself out by at least one mod in two threads, I would imagine more if I looked around.

Carry on the way you are, I'll just sit back and watch you go the same way as the rest...

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
dj BlackDragon
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location: who knows
Posted: 28th Jul 2004 12:37
well put BatVink.I have noticed more than just him posting more than one thread about the same thing.If only there was a way to stop it.
Bye,
Ian

current project:Quest for the Five Staffs of Draconia

Login to post a reply

Server time is: 2025-05-25 17:16:09
Your offset time is: 2025-05-25 17:16:09