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 / Character control problem

Author
Message
Kenny77
17
Years of Service
User Offline
Joined: 7th Oct 2006
Location:
Posted: 19th Jan 2007 01:21
Hey guys, I have been having some problems with the character control commands in DarkPhysx. The problem I have is that I can't get my character (ninja) to stop when it collides with the cube. Thanks.


Cash Curtis II
18
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 21st Jan 2007 10:36
I can't run your code. The label "Menu" is missing, and your media isn't included. You're not likely to get help if your example doesn't work.


Come see the WIP!
lava man
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: west allis wisconsin
Posted: 14th Feb 2007 03:56 Edited at: 14th Feb 2007 03:58
okay set collision speed = to character speed
now try to use this


if object collision(1,2)=1
then move object 1,0.9
endif
then reapeat the step accept this time
if object collision(1,2)=1
then move object left 1,0.9
endif

if object collision(1,2)=1
then move object right 1,0.9
endif

if object collision(1,2)=1
then move object 1,-0.9
endif

if it helps let me now
[/code] if object collision(1,2)=1
then move object 1,0.9
endif

if object collision(1,2)=1
then move object right 1,0.9
endif

if object collision(1,2)=1
then move object left 1,0.9
endif

if object collision(1,2)=1
then move object 1,-0.9
endif
[code]

I use dbp and xna

Login to post a reply

Server time is: 2024-03-28 22:02:58
Your offset time is: 2024-03-28 22:02:58