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.

AppGameKit Classic Chat / trying to get shark animation playing

Author
Message
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 20th Mar 2018 21:24 Edited at: 20th Mar 2018 21:25
Hi,been trying to get into animating objects, so I downloaded this model, checked it in blender,had to scale it up... and it played fine, loaded it into agk with:

shark=LoadObjectWithChildren("shark.fbx")
as i renamed it that....

tried using:

playObjectAnimation(shark,"Swim",0,40,1 ,0)
before a loop, but nothing.. I see the shark but no animation...
Can someone tell me what I am doing wrong, I guess I wasnt sure about the string bit...
Hail to the king, baby!
Bengismo
7
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 20th Mar 2018 22:29 Edited at: 20th Mar 2018 22:56
Your right that your animation name string isnt correct.

It will animate if you use...
PlayObjectAnimation(shark,GetObjectAnimationName(shark,4),0,-1,-1,0)

That will loop the shark slowly swimming (anim no 4 )

The animation names in that file are actually:
"AnimStack::ArmatureISwim" etc....
There are 7 different animations but only 1-5 seem to do anything. The names can be found with with the GetObjectAnimationName() function
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 21st Mar 2018 08:49
ah, thanks, yes it works now,though it does not seem to want physics... might be trying wrong shape.,
Hail to the king, baby!

Login to post a reply

Server time is: 2024-11-27 14:43:11
Your offset time is: 2024-11-27 14:43:11