Hola buenas, quiero crear un remake del Dragon Ball Z: Buu's Fury de Game Boy Advance, y la animación del Kame Hame Ha, ondea el pelo, mejor voy al grano, quiero hacer que muestre la primera sub-imagen, pero solo al principio y que luego la ignore, para las animaciones tengo un script, algo así:
[gml]
if (keyEnergy)
{
if (intFaceX == -1)
{
sprite_index = sprPlayerKameHameLeft;
if (sprite_index == sprPlayerKameHameLeft) && (image_index == 2)
{
image_index -= 1;
}
}
else if (intFaceX == 1)
{
sprite_index = sprPlayerKameHameRight;
}
else if (intFaceY == -1)
{
sprite_index = sprPlayerKameHameUp;
}
else if (intFaceY == 1)
{
sprite_index = sprPlayerKameHameDown;
}
}[/gml]
[gml]
if (keyEnergy)
{
if (intFaceX == -1)
{
sprite_index = sprPlayerKameHameLeft;
if (sprite_index == sprPlayerKameHameLeft) && (image_index == 2)
{
image_index -= 1;
}
}
else if (intFaceX == 1)
{
sprite_index = sprPlayerKameHameRight;
}
else if (intFaceY == -1)
{
sprite_index = sprPlayerKameHameUp;
}
else if (intFaceY == 1)
{
sprite_index = sprPlayerKameHameDown;
}
}[/gml]