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 / Camera Collision! Lol!

Author
Message
CheatCat
17
Years of Service
User Offline
Joined: 7th Mar 2007
Location: Sweden
Posted: 26th Apr 2008 20:59
Someting is wrong with my code, the camera turn away to another direction, when it collide whith a wall!

Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 27th Apr 2008 05:33
I believe this is causing the problem:



Unfortunately, I don't know how to fix it. Try something like...



I don't need an oven to make my cookies.
CheatCat
17
Years of Service
User Offline
Joined: 7th Mar 2007
Location: Sweden
Posted: 27th Apr 2008 21:43
I don't think that works... Maybe I should use:


Or something...
CheatCat
17
Years of Service
User Offline
Joined: 7th Mar 2007
Location: Sweden
Posted: 28th Apr 2008 20:42
Well, this code seems to work:

But the camera donĀ“t stop when I go bakwards to the wall!
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 28th Apr 2008 21:02
see if there isn't a way to "RESET" the objects involved.

CheatCat
17
Years of Service
User Offline
Joined: 7th Mar 2007
Location: Sweden
Posted: 29th Apr 2008 21:06 Edited at: 29th Apr 2008 21:19
Do you mean check if I collide, then reset the collision data and check again?

This code can make the camera to stop if the player go backward (down key):



But this code is better, but there is no backwardcheck:

jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 1st May 2008 21:57
Sorta thats what I meant, yeah! But not to check again, but so the NEXT CHECK works "Cleanly" and if you get a hit reset it.

I don't know.. I do know in DBPro I was updating objects AFTER a collision with sparky and it worked and I think thats how it was recommended. In DarkGDK... I think I am updating objects after I move em each time, ugh.. I forget.. I only tinker until its working then I move on.. I'll be quiet now

CheatCat
17
Years of Service
User Offline
Joined: 7th Mar 2007
Location: Sweden
Posted: 4th May 2008 20:09
Why should I reset the collision data? :s

Maybee I should do anoter colision check I the player go bakward...
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 4th May 2008 20:12
I don't mean RE-Introduce and Re Setup everything.. just some collision systems, require a "flag clear" after the collision is detected. I don't memorize which ones.. I'm sorry.. just trying to help....Drop ideas .. things to look for in the doc's etc.

Login to post a reply

Server time is: 2024-11-20 09:33:22
Your offset time is: 2024-11-20 09:33:22