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 / Brain Boggling Collision

Author
Message
kklouzal
15
Years of Service
User Offline
Joined: 15th May 2009
Location: Arizona
Posted: 19th May 2009 09:33
Well, I'm trying to use some Sparkys Collision here, this is the code for the collision function I made:




And here is where the function is being called:



Well, when I press W inside my game the player just does not move, i'm almost 100% certian that my code is incorrect but I feel sparkys is a little advanced for me so could I grab some expert help?

If you have a different way for me to achieve my goal i'm open to ideas!
kklouzal
15
Years of Service
User Offline
Joined: 15th May 2009
Location: Arizona
Posted: 19th May 2009 11:50
I figured out what was wrong while waiting for the mods to approve my post =]

Here is what the code has ended up looking like:


and:


When I used this code in my origional 'map' it did not work what so ever, I tried it in a different 'map' and it sort of works except the character is off the ground a few units which im not too concerned with. I don't know what was wrong with the origional .x file itself, i'll just have to try to make a new one.
Imran
15
Years of Service
User Offline
Joined: 28th Jun 2009
Location: Chicago,IL
Posted: 20th Jul 2009 16:33
@kklouzal,If you dont want the player to be above the ground in the 4th line of ur code make this change
and in the last third line make this change


This way no matter how much radius you keep you wont be above the ground.

Login to post a reply

Server time is: 2024-10-01 01:14:13
Your offset time is: 2024-10-01 01:14:13