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 for optimise my script

Author
Message
funny
17
Years of Service
User Offline
Joined: 28th Jul 2007
Location:
Posted: 6th Oct 2010 19:43
Hi people,
I've a character with multiple animations (walk/crouch/stand, 9 attacks ...)
and i making my script.
Here is

I'm not really new in scripting but i think this is unoptimised...
Anybody here can help me for optimize routine, or is it really good optimized ??

Sorry for my english, i'm frenchy boy.

respectfully,

Francis
Mr illusionest
15
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 6th Oct 2010 21:59
There is few mistakes in there :
1- The random action value must vary , it must be like 5 , 10 , 15 ... etc. , This way the random actions are useless .

2- These lines
, are completely usless , because nothing leads to them , I suggest you just remove them .

3- This line and the lines like it :
is ruining the script , It's like saying to the engine : If you go here , go back to the first place ! You should remove them so the script works fine , this way the character won't attack the player .
Hope I didn't miss anything .

Cheers

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
funny
17
Years of Service
User Offline
Joined: 28th Jul 2007
Location:
Posted: 7th Oct 2010 12:46
Work perfectly,

Thanks !

Francis

Login to post a reply

Server time is: 2024-11-24 19:46:50
Your offset time is: 2024-11-24 19:46:50