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.

Author
Message
RadiusOFT
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Aloha, OR(egon)
Posted: 26th Apr 2006 06:21
how do i get my 3d guys do jump in dbc?
Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 26th Apr 2006 07:04
im not sure if this will work in dbc or not i only use dbpro but youll get the basic concept


http://www.ebaumsworldsucks.com/(not my site or my movie)
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
yacine de lucia
18
Years of Service
User Offline
Joined: 19th Apr 2006
Location:
Posted: 28th Apr 2006 02:18
i just posted the same question a few days a go and tdk have
helped me a lot!
thanks tdk !
but the function is just for y position =0.0 and not for all
y positions for example if the charachter jumps on a platform
it will not jump until the characthers falls down to the ground(y position =0.0)

the creator
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 28th Apr 2006 20:03
Quote: "it will not jump until the characthers falls down to the ground(y position"


All you need to do is replace the graound value (0.0) with a varaiable:

GroundLevel = 0.0

When you land on a platform, you simply use:

GroundLevel = 3.5 (or whatever the platform height is).

In the jump button check routine, use the GroundLevel variable to decide whether to jump or not.

TDK_Man

RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 29th Apr 2006 17:52
When you get into more advanced models/terrains that aren't just square you'll probably want to either look into using Intersect Object (DBP) or Sparky's Collision dll (DBP/DBC). Basically you'd check for intersection below the user, and (using TDK's method) you'd set the Ground variable to the intersection return (since they return the distance to an intersection, that distance would be the height from the ground as well).

But you're just starting out so dont worry about this for now, just something to keep in mind.

RadiusOFT
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Aloha, OR(egon)
Posted: 2nd May 2006 01:18
thanks

Login to post a reply

Server time is: 2024-09-24 21:24:36
Your offset time is: 2024-09-24 21:24:36