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 / in what order is the script code executed..

Author
Message
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 11th Jul 2009 01:25
Hi everyone,
I was wondering if there's any difference between writing the switching state command at the begining or at the end of the line..

to make it more clear, is there a difference between this:

and


In the first code does it execute the movefore command or does it switch to state 2 without executing it?

Thank You..

A mod has been erased by your signature... please make it no bigger than 600x120
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 11th Jul 2009 04:53
There is no difference in execution between the two. The engine will carry out those commands to the end of the line, no matter what order they are in. I have used both configurations.

I can't say for sure if this is the case with all commands and there may be a timing difference, but I'm not sure.

Brian.

Lizzie Borden took an axe and gave her mother forty whacks.

fpsFREE - Contact Me
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 11th Jul 2009 10:34
Thank You

A mod has been erased by your signature... please make it no bigger than 600x120
shadowfire
15
Years of Service
User Offline
Joined: 24th Mar 2009
Location: England
Posted: 11th Jul 2009 13:42
i'm pretty sure the only way to make it run that at a different time is using state=1 and state=0

Coming soon: what lies beneath.
check out the official thread: http://forum.thegamecreators.com/?m=forum_view&t=153893&b=25

Login to post a reply

Server time is: 2024-11-25 03:52:10
Your offset time is: 2024-11-25 03:52:10