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.

Newcomers DBPro Corner / Character Animation code here, plz help ppl, I'm begging here

Author
Message
cypher
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 13th Feb 2003 18:10
How do I get my little dude to anim inside DBP? Below is the code I am using.

It is a real simple anim model, it's just 2 legs doing a one step cycle. It was Modeled and animated in 3DS Max and exported as .X with default settings.

I realize I'm a newb and this may be easy for some of you, but it is really frustrating me and I need HELP.

rem code here
load object "./player/legs.x",2
playerframe#=total object frames(2)/100.0
loop object 2,1*playerframe#,100*playerframe#



rem *** Main Loop ***
Do
rem * start player key control *
rem * turn/move left *
if leftkey()=1
playerx#=playerx#-.5
loop object 2,1*playerframe#,100*playerframe#
endif

rem * turn/move right *
if rightkey()=1
playerx#=playerx#+.5
loop object 2,1*playerframe#,100*playerframe#
endif

Sync
Loop
rem end code

thank you for any help
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 13th Feb 2003 22:51
Read the tuts There is a whole tut on how to do this. You simply must append your first model to your second using the append command, and specify the framerate

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!

Login to post a reply

Server time is: 2024-11-24 02:39:35
Your offset time is: 2024-11-24 02:39:35