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.

Dark GDK / Collison

Author
Message
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 7th Jun 2008 22:18
When ever i put a if collison

it will always say thier is a collison even if the objects are a mile apart

The South Will Rise Again Software Development Comp.
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 7th Jun 2008 22:34
Yeah, that happens to me, is there ever a collision? If so, then you need a while loop. If it is an if, it says-

If this EVER happens, Do this.

A while loop would mean-

While this is happenning do this, but when it stops, don't do it.

~~Its not about what you know, its about how you figure it out.~~
dbGamerX
16
Years of Service
User Offline
Joined: 23rd Nov 2007
Location:
Posted: 8th Jun 2008 01:38
Right on, programing maniac.

But the if statement should still work though.

dbPrint ( "Sig" );
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 8th Jun 2008 02:15
Uh, I was just thinking logically, when you say if, it means if it EVER happens, when you say while, it means if at present time it happens.

Thanks.

~~Its not about what you know, its about how you figure it out.~~
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 8th Jun 2008 12:02
what objects are you using to check for the collision? GDK uses bounding boxes to check for collision, so it basically only works well with cuboids. you should try sparky's if you want to do collisions with complex objects.
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 8th Jun 2008 17:26
What is this sparkys everyone is talking about i cant find nothing about it. Im using a direct x model coliding with the map also direct x

The South Will Rise Again Software Development Comp.
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 8th Jun 2008 18:37
Uh.... Where is that link...... hm..... Google it, I can't remember where I found it...... Sparky's collision.....

(Need a Name)
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 8th Jun 2008 20:12
Could you email me sparkys becasue the link i found says page not found?

The South Will Rise Again Software Development Comp.
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 8th Jun 2008 20:25 Edited at: 8th Jun 2008 20:26
Aha, I found it-

http://forum.thegamecreators.com/?m=forum_view&t=74762&b=5

This should work I think.

(Need a Name)

Login to post a reply

Server time is: 2024-10-07 21:24:54
Your offset time is: 2024-10-07 21:24:54