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 Professional Discussion / Sparky's Collision Stairs

Author
Message
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 14th Aug 2011 23:21 Edited at: 14th Aug 2011 23:22
I have some code to handle collisions in my game engine, it allows me to walk up stairs but for some reason the gravity code has no effect.
eg. i walk up the stairs but cant walk down them.
any ideas?



=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 16th Aug 2011 00:09
What is factor# set as? I have a feeling it doesn't have a value, so dec plr(1).y,5*factor# would be the same as dec plr(1).y,0

Just a thought.

SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 16th Aug 2011 09:42
Nope factor is a value generated by my TBM function. Thanks for post though

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 16th Aug 2011 13:01
are the variables you use for player co'ords floats?

SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 29th Aug 2011 21:20
yes

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 29th Aug 2011 21:26
I can't really help much more without seeing more code.

Bluespark
15
Years of Service
User Offline
Joined: 18th Mar 2011
Location:
Posted: 30th Aug 2011 00:23
Perhaps you're not looking at the right piece of code.
What I recommend is to make a smaller program that demonstrates the problem and give us that code. I'm sure then that the problem will be found very quickly.

Login to post a reply

Server time is: 2026-07-10 22:37:08
Your offset time is: 2026-07-10 22:37:08