Quote from: Crimson Wizard on Wed 28/11/2012 17:47:50Then, how do I call the same code multiple times?Quote from: RenatoDias on Wed 28/11/2012 17:27:05Oh, sorry, I understand now.
Not exactly. I want to know if the script is executed automatically by the game engine itself or I have to call the script using a object-oriented command, like we did back in AGS 2.7 for dialogs(which I never fully mastered)
If you mean animation in particular, only Walking, Speaking and Idle animations are activated automatically, if you setup corresponding properties for the character. Other kinds of animations should be run from script by calling command.Quote-Use those loops for other activities, such as only when the character is idle(thinking), fixing some broken object, using house appliances and such.Except for idle animation, which could be pre-set, you should call commands from script on your own at corresponding times.
There are techniques that let you make this easier for yourself, such as writing your own functions for each type of activity and calling them, so that you won't need to remember loop numbers and other related params all the time (see links I gave above).
Can I use any of the functions below?
- DO{this}-WHILE(variable==1)?
or
- For(variable==1){this}
Thanks...
PS:The this is an example of function.