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 Physics & Dark A.I. & Dark Dynamix / Several problems with the character controller

Author
Message
Interplanetary Funk
9
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 4th Aug 2010 18:59
I'm having problems with the character controller, one being it doesn't seem to be where I'm telling it to be. I've set it up to make a cube and make a box controller around that cube, however it seems to be underneath that cube rather than around it, also, as it is in the post below, it works fine when moving the character controller, however, as soon as I uncomment "_PLAYER_Y# = object position y(_PLAYER_OBJECT)" it no longer moves backwards or forwards, and instead moves up and down. On top of all this, there seems to be no gravity on the character controller.

Hopefully I'm doing something wrong rather than it being an issue with DarkBasic, so any help would be much appreciated.

HowDo
16
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 4th Aug 2010 23:52
try this line and see if it works better.



Dark Physics makes any hot drink go cold.
Interplanetary Funk
9
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 5th Aug 2010 00:54
I've changed my code to this:


however, now the box is not moving at all.
HowDo
16
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 5th Aug 2010 18:52
A part form not having any globals to help in the function you forgot to put the phy update before sync, it now goes but you need to change a few things like move distance.

whenyou run it you'll see what I mean.



Dark Physics makes any hot drink go cold.
Interplanetary Funk
9
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 5th Aug 2010 22:20
it works now =) thank you.

(I did have the globals declared, but did not post them as there are currently a lot)

anyway, thank you very much =)
HowDo
16
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 5th Aug 2010 22:58
have you download the nvidia visual debugger yet?

Dark Physics makes any hot drink go cold.
Interplanetary Funk
9
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 6th Aug 2010 01:40
No, I wasn't aware there was one. I'll go download that now. thanks for mentioning it =)

Login to post a reply

Server time is: 2019-06-16 03:31:41
Your offset time is: 2019-06-16 03:31:41