Hello folks,
I am new to scripting and i am studying FPI Script through the official community guide. I really don`t like to be annoying asking all the time, i always prefer to search and try by myself, however, only when i stuck in something, it`s time to ask help.
I am having difficult to play an animation after another. I have an animated helicopter in 3dsmax, it has 100 frames of animation.
From frame 0 to frame 90 is the animation where the helicopter flies from the ground to a certain height, and from 90 to 100 is the "idle" animation (the blades are rotating) that i want to loop.
I exported it from 3dsmax to a X file, i opened the x file in fragmotion to check, and it`s perfect.
I am making it an animated dynamic object (not character) and this is the animation info from it`s fpe file:
;Animationinfo
animmax = 3
anim0 = 0,0
anim1 = 0,90
anim2 = 90,100
I tried several ways to make it animate the way i want, i tried, in example:
:state=0:animate=1,animate=2
It only played the first animation
Then i tried:
:state=0:animate=1,state=1
:state=1:animate=2
It only played the second animation
Then i tried:
:state=0:state=1,setframe=1
:state=1:incframe=1
:state=1,frameatend=1:animate=2
This almost worked, it played the first animation, an then played the second animation, however it did not looped the second animation, witch is what i want.
But there is another way i tried, also almost worked:
:state=0:etimerstart,animate=1,state=1
:state=1,etimergreater=9000:animate=2
This almost worked the way i want, however i could not find the correct "etimergreater", because i thought that 100 units of time in fpsc is equal a 1 frame of an animation, so as the way that my first animation has 90 frames (90 x 100 = 9000).
But also i tried another values from 100 until 9000, but did not work.
Please can someone help me?
Obs: If this may help i am attaching to this email the helicopter and the fpe and fpi files,
Thanks
Goldenye 007 N64