I made a separate thread of the animation question I had from my original thread.
viewtopic.php?f=8&t=49150
I just got home from a month long trip and lost some knowledge about the coding and where I left off. I tinkered with my game codes and tried to animate the battle screens I needed to do on my game.
So it goes like this. The battle has a command screen where you could select the action for battle. All the moveset have been programmed but the sprites aren't.
I used this code in defining one of the basic attacks:
Code: Select all
image char attack:
"image/a1.png"
pause .15
"image/a2.png"
pause .15
"image/a3.png"
pause .15
"image/a4.png"
pause .15
"images/a5.png"
pause .15
Code: Select all
image char dash:
"image/d1.png"
pause .15
"image/d2.png"
pause .5
"image/d3.png"
pause .15
transform move_dash:
xpos 850 ypos 250
linear 3.0 xpos 450
Code: Select all
label attack:
show char dash at move_dash
show char attack
Second thing I'm checking for is like, is there a way to make the enemy sprite show damage or flinch/jerk whenever a character lands a hit on the enemy? I tried doing it with the sprites close to each other but the enemy sprite already flinched before the attack is being executed. I tried the same method as what I'm gonna present next but it doesn't look satisying and is kinda glitchy.
Lastly, is there a way to add sound effects and voices during the attack? Like formthe basic attack, the character will give a "Hyaah!" and then a woosh sound will play then lastly, a hit sound. I tried doing it like this but it doesn't work right. I split the attack animation into four: attack_1 for the preparation, attack_2 for the movement, attack_3 for the hit, and attack_4 for the return to stance but it takes a large amount of code and works kind of glitchy.
Code: Select all
label attack:
show char attack_1
play voice char_001
voice sustain
show char attack_2
play sound woosh
show char attack_3
play sound hit
show char attack_4
play sound woosh
I'm looking forward to all your help ^uJ