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
threedslider
5
Years of Service
User Offline
Joined: 8th Jul 2018
Location:
Posted: 20th Jun 2019 19:29
Any there a control for animation as walk, run or jump to switch them in basic ?
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 20th Jun 2019 20:43
PlayObjectAnimation( objID, animName, starttime, endtime, loop, tweentime )

objID - The ID of the object to modify.
animName - The name of the animation to play, defined by the modelling program
starttime - The point in the animation at which the object should start playing, in seconds
endtime - The point in the animation at which the object should stop playing, minus 1 to continue to the end
loop - 1 to loop the animation forever, 0 to play once, any other positive integer to loop that many times
tweentime - The time in seconds to transition from the objects current state to the first frame of animation

you can start and end an animation at any point that way an animated model may have several animations
fubarpk
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
threedslider
5
Years of Service
User Offline
Joined: 8th Jul 2018
Location:
Posted: 21st Jun 2019 17:17
Cool ! Thank you fubarpk.
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 22nd Jun 2019 04:26
You can also control the bones on your own, instead of baking animations.

SetObjectBonePosition ( objID, boneIndex, x, y, z )
SetObjectBoneRotation ( objID, boneIndex, angx, angy, angz )
SetObjectBoneRotationQuat ( objID, boneIndex, w, x, y, z )

Login to post a reply

Server time is: 2024-04-26 06:34:23
Your offset time is: 2024-04-26 06:34:23