Hello,
I have some problems concerning animations in construct 2.
There is my situation : I have a ship than can shoot laser. This ship has 3 colors which represent 3 states : Yellow red and blue. (It's an Ikaruga like for theses who knows).
Besides this, there is asteroids that are blue or red. So depending on the states of my ship the player gains more or less points.
Yellow state is 1 point no matter the color of the asteroid.
Blue stat is 2 for blue asteroid and 0 for red. Reciprocal for red.
But this isn't my problem (yet, at least). What I want is when the player press "shit" the ship become blue (done) and when i press ctlr the shipe become red (done aswell).
BUT. On this I have one big problem and maybe something to optimise the gameplay.
FIRST PROBLEM : The ship become red or blue but the laser is still yellow, no matter what. (In the debug i've saw that the old laser (already shooted) chance states but not the new one).
So i need to know how to put red or blue for my laser, dependings of the color of my ship (blue for blue / red for red ofc).
Then for the optimisation i'm wondering if it's possible to push only ctrl to change the color of my ship (tried but ain't working in the way i found).
There is some screens to make helps easier for you.
The settings of my frames. Working in the exact same way for the lasers. (frame 0 = red ; frame 1 = yellow ; frame 2 = blue in the same animation)
And now my event settings. I have the space key to shoot (it stop the animation so it stays yellow at the beginning since my yellow isn't the last frame). And I have the shit / ctrl pressed where i try to treat my ship + laser in the same way, it works for the ship but not for the laser, so i'm quite lost :/
---------------------------------------
EDIT 1 (06/10) :
I've worked on something else to wait people to answer and i'm like mind fucked.
I wanted to put an explosion animation so i've added an animation named explosion and putted multiple explosions in frames so this case is settled. I've added it on my event, when my sprite is destroyed it is supposed to play the animation "explosion" like we can see on screen, but when i'm trying to play it, nothing happening, so i'm lost :/
Thank you very much