Helle peeps at TGC
I have a bit of a problem here.
I have made a map(ONE big .x file) with just stationaire objects.
The map loads perfectly and I'm able to move around using standart WASD, Space, Mouse.
The problem is, when I try to load a Player model with a framed bones animation + "4 IK chains(Not exported)" - My model dissapears.
I had 1 "good go" with the animation playing, but the model was rerotated and deform.
I used this thread to make sure the exportation was ok:
http://forum.thegamecreators.com/?m=forum_view&t=168612&b=3&msg=1997346#m1997346
This is the code I used for the Forward animation:
makePlayer:
load object "logan.x",2
position object 2,0,100,0
sc_setupObject 2,0,1
rem w key =17
rem start walking
if keystate(17) and object playing(1)=0
play object 2,1,40
endif
rem release key and stop walking - at any frame
if keystate(17)=0 and object playing(1)
stop object 2
rem set object back to first frame - change it to whatever frame you want
rem the animation should interpolate back to this frame smoothly
set object frame 2,1
endif
return
I took the code from the following thread, This code is the 3rd posted, and I have tried both number 2 and 3.
I succeeded once with code #2, but I dont see much deffirence in them, and both should work.
Any help, guys?
http://forum.thegamecreators.com/?m=forum_view&t=168899&b=1
--------------------------------------
NewBie - Coding? Damn..