NPC moves with looped animation, if not reading from record
#1

Hello..
in 0.3c/0.3d, when you make an NPC for like 5 seconds long and put an looped animation on it, after the record is finished, NPC will start to move.
[ame]http://www.youtube.com/watch?v=CO2DLNkrSqM[/ame]
Reply
#2

lol..
It is a funny bug. I will test it when I add animations to my NPCs.
Reply
#3

Isn't one of the animation params to stop the play moving? Could try setting the param (freeze, lockx, locky) option to true.

Code:
ApplyAnimation(playerid, animlib, animname, 4.0, 0, 0, 0, 0, time, true);
Code:
ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync = 0);
Reply
#4

Nice sync with audio
Reply
#5

Haha, nice bug
With a dancing animation it would look rly cool!
Reply
#6

Quote:
Originally Posted by Rac3r
View Post
Isn't one of the animation params to stop the play moving? Could try setting the param (freeze, lockx, locky) option to true.

Code:
ApplyAnimation(playerid, animlib, animname, 4.0, 0, 0, 0, 0, time, true);
Code:
ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync = 0);
Its already freezed.
ApplyAnimation(playerid,"GYMNASIUM","gym_shadowbox ",4.1,1,1,1,1,1);
btw, you must disable the record looping (if record ends, it loads it from start) to see this bug.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)