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 / Need help with Pigion Script :P

Author
Message
Anja Viotile
17
Years of Service
User Offline
Joined: 20th Nov 2007
Location: Denmark
Posted: 13th Dec 2007 11:50 Edited at: 13th Dec 2007 11:50
Ok i basicly have a pigion which consists of 2 animations..
1 is idle the other is scared off



Whats wrong with this script.. Animate=1 seems to just loopit
so the animationover doesnt work :/

Is there a way to play animation one time only?
The pigion has a x,y,z pos animation for the flyoff so dont need to move..

so basicly what i want is:
A=Idle
B=Hear Sound (5 segments away) = Fly Off
C=End Of Flyoff Animation, Destroy!

Visit us at
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 13th Dec 2007 12:29
Quote: ":state=0:state=10,setframe=0
:state=10:animate=0
:state=10,noiseheard=500:animate=1,state=11
:state=11,animationover=1:destroy"



I take it that from your above script the animate=0 is the idel animation and the animate=1 is the scared off animation.

therefore:

Quote: ":state=0:animate=0
:state=0,noiseheard=500:setframe=1,state=1
:state=1:incframe=1
:state=1,frameatend=1:destroy"


that should do the trick.

Anja Viotile
17
Years of Service
User Offline
Joined: 20th Nov 2007
Location: Denmark
Posted: 13th Dec 2007 15:23 Edited at: 13th Dec 2007 15:35
2 things

1. Now they wont animate the idle. for some weird reason.
2. They are first destroyed when u walk in the segments next to them or on them.

Edit:
Does FPSC have some very laggy scripting? Seems half the time it works. the other half it seems it doesnt really run the script.

Visit us at
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 14th Dec 2007 20:38
Quote: "Does FPSC have some very laggy scripting? Seems half the time it works. the other half it seems it doesnt really run the script."


got it in one.

Login to post a reply

Server time is: 2024-11-24 01:38:24
Your offset time is: 2024-11-24 01:38:24