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.

FPSC Classic Scripts / Please help with animation..

Author
Message
LPP
14
Years of Service
User Offline
Joined: 5th May 2010
Location:
Posted: 5th May 2010 16:06
Ihave this .fpe code with animation on it for my object that will spin, the object was modeled and animated with bones in frag.
when I import it into the engine it is not animating. what is wrong with my code??? Please help I have searched the forum and can't find the problem.
.
;Generated on 05/05/10 at 05:43:01

;header
desc = smart

;ai
aiinit = Appear1.fpi
aimain = Default.fpi
aidestroy = Disappear1.fpi

;spawn
spawnmax = 0
spawndelay = 0
spawnqty = 0

;orientation

model = star.x
offx = 0
offy = 0
offz = 0
rotx = 0
roty = 0
rotz = 0
scale = 100
defaultstatic = 1
materialindex = 3
collisionmode = 1
strength = 0

;visualinfo

textured = Star T_D2.dds
castshadow = 0

;Animationinfo
animmax = 4
anim0 = 1,4
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 5th May 2010 17:14
make it dynamic, and give it a script that plays animation 0.


That should solve the problem

LPP
14
Years of Service
User Offline
Joined: 5th May 2010
Location:
Posted: 6th May 2010 04:50
Hello again,

This is what I did....

But it still does not animate at all Please Help I'm not understanding this at all.

[;Artificial Intelligence Script

;Header

desc = Animation

;Triggers

:state=0:animate=0

;End of Script]
LPP
14
Years of Service
User Offline
Joined: 5th May 2010
Location:
Posted: 8th May 2010 02:37
THanks for your help..Gamer X
JesterCarvalho
14
Years of Service
User Offline
Joined: 13th May 2010
Location: Star
Posted: 26th May 2010 06:29
I was having the same problems with a health animation. We just had to tweak it a bit. DonWon and i wanted the health to start animation when you were within a certain range and be able to pick it up so we created this script. Hope this helps.



~Jester~
Crysis
14
Years of Service
User Offline
Joined: 8th Jun 2010
Location: Serbia
Posted: 6th Jul 2010 03:01
hmmm...did you have the bones?
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 6th Jul 2010 05:06
You guys are staying in the same state, so the animation call is happening so fast, all you see is the first frame over and over.

Try jumping to another state as in ...

:state=0:animate=0,state=1

That way you only call it once, so it actually has a chance to play out all frames.

   Conjured Entertainment

 WARNING: Intense Madness

Login to post a reply

Server time is: 2024-11-24 21:44:32
Your offset time is: 2024-11-24 21:44:32