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 / problem about collision

Author
Message
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 23rd Apr 2008 18:54
I was using the collision command so that when an object collided with another object it goes back one step.


the problem is that when the ob ject hit the other object it kept on going backward. It never stopped.

So, is there a way to set the command so that it only goes back for a milisecond?
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 23rd Apr 2008 21:34
update the object each time loop. I suspect your reusing the same "HIT" continuously.

programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 23rd Apr 2008 21:54
I dont exactly know what you mean when you say
Quote: " I suspect your reusing the same "HIT" continuously."


I don't know how to change that.
and how would I update the object?

sorry-- a bit of a noob at this.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 24th Apr 2008 00:52
SC_UpdateObject(Id) Or something close to that (I switched to DarkGDK - I'm forgetting the syntax for darkbasic even though I know what everything does ...somewhart know whart alot does is more like it)

programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 24th Apr 2008 01:54
One last questio --
How do you set it so that when an object collides with the terrain it does something?
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 24th Apr 2008 02:48
Ondrej
16
Years of Service
User Offline
Joined: 18th Apr 2008
Location: Slovakia
Posted: 4th May 2008 16:51


cout << sorry for my bad english;

Login to post a reply

Server time is: 2024-11-20 07:40:16
Your offset time is: 2024-11-20 07:40:16