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