by Marko » Thu Nov 02, 2006 9:32 pm
A code?
If you mean the code that is in the script actorcreate - that is for now only an order that plays sound2. Later I would put the "if" logic, but first it has to play the sound.
To explain the code (since these are the final phases)
There is an actor that is created. When it is created, sound2 is used from the script, and everything is ok then. After a few seconds that actor is being destroyed. In event "destroy actor" a script is opened that calls different functions and creates new actors.
The actor I have problems with is created through such a function, and, depending on a level, gives an animation saved in that actor. It works fine, but if I put on that actor "on create" and the sound from the script, it doesn't work, and the other one does???
Marko