creating actor,changing animation immediately - doesnt work?
Posted: Sat Jun 30, 2007 9:45 pm
hi folks!
another little problem here that i cant fix and dont know why:
i have an "explosion"-actor. it holds 10 animations of little explosions. i assigned the first one to it.
now, i create this actor somewhere in a game when i hit a certain object. no problems so far. trouble starts here:
i use a simple
in the Actor Create-Event. So hopefully you get the picture.
The problem is however, it simply doesn´t change its animation. Am i thinking totally wrong? I though immediately after the actor has been created it should have "become" a new animation ...
Sadly, it always just plays the animation that i´ve selected in GE itself....
Fun thing is: I tried the same using Sounds (to play random explosion-sounds and this DOES work!
Can anybody enlighten me, please?
another little problem here that i cant fix and dont know why:
i have an "explosion"-actor. it holds 10 animations of little explosions. i assigned the first one to it.
now, i create this actor somewhere in a game when i hit a certain object. no problems so far. trouble starts here:
i use a simple
- Code: Select all
temp = floor(rand(9));
if (temp = 0)
{
ChangeAnimation("Event Actor", "bluexeplo1_", FORWARD);
}
if (temp = 1)
{
ChangeAnimation("Event Actor", "bluexeplo2_", FORWARD);
}
(...) and so on ....
in the Actor Create-Event. So hopefully you get the picture.
The problem is however, it simply doesn´t change its animation. Am i thinking totally wrong? I though immediately after the actor has been created it should have "become" a new animation ...
Sadly, it always just plays the animation that i´ve selected in GE itself....
Fun thing is: I tried the same using Sounds (to play random explosion-sounds and this DOES work!
Can anybody enlighten me, please?