[glow=red,2,300]*For this part you NEED to already have the punching part in the common event done*[/glow]
We will be using these Frieza Sprites:
Alright:
*Before enemy*
Create an event, set it to parallel process, make it under hero, and have it set the variable "Frieza Attack" to 1. Then Wait .2 Seconds. Then change the variable to 2, then wait .1 seconds. Your event should look like this:
Create another event, set it to auto-start, make it under hero, and have it set two variable to 10, Goku HP, and Frieza HP. Then turn the switch “HP Set” on, make a new page, parallel process, and under hero. Your event should look like this:
*enemy event*
1. Create an event in the map you want your enemy, set the graphic as the Frieza graphic, name the event "Frieza".
2. Make three pages in this event.
3. On the first page, make the trigger condition Collision With Hero, and make the condition variable "frieza attack" equal to 1.
*Starting Commands*
(PAGE 1)
4. Go to the 3rd page of the command list and choose Fork Option or Conditional Branch. Set it to the variable that you put as your punching variable in the common event, and make it so it has to be equal to 5.
5. Change your 8-way run switch off.
6. Go to 3rd cmmnd page, play sound, Goku punching (optional)
7. 2nd cmmnd page, Move event, hero, Wait ONCE.
8. 1st cmmnd page, Change Hero Sprite, then the first punching sequence of Goku (you will be using the Goku Punch file that Gaara posted in the first tut)
9. 2nd cmmnd page, wait, .1 seconds.
10. Rpt step 8, except put the second sequence of the punching.
11. Rpt step 9.
12. Rpt step 8, third sequence.
13. 3rd cmmnd page, play sound: Damage2.
14. 2nd cmmnd page, flash sprite, flash Frieza red (Red 31, Green and Blue 0). Flash it for .3 seconds.
15. Rpt step 9.
16. Rpt step 8, fourth sequence.
17. Rpt step 15.
18. Change Goku to his regular walking sprite.
19. Subtract 1 from the Variable Frieza HP.
20. Turn your 8-way move switch ON.
21. Set your goku attacking variable that you used for step 4 to ZERO, NADA, ZILCH, or GOOSE EGG. Or 0, whichever you prefer.
22. Make a fork option, and set it to Frieza HP equal to zero.
23. Under the fork, change a switch called “Frieza Dead” to ON.
End. Your page should look something like this:
(note, the picture DOES NOT have the fork option at the end, I forgot to put it in the picture.)
(PAGE 2)
This one is a bit easier; it’ll make the enemy attack you!
This one is on Collision With Hero, and the condition is Variable “Frieza Attack” is equal to 2.
1. Change your 8-way run switch OFF.
2. 2nd page, move event, hero, wait.
3. 2nd page, move event, frieza, change sprite (or change graphic), and choose the 1st sequence of the frieza attack sprite that at the top of this post.
4. Wait 0.1 Seconds.
5. Move event, frieza, change graphic, 2nd sequence.
6. Step 4.
7. Step 5, 3rd sequence.
8. 3rd page, play sound, Goku Hurt (optional step).
9. Flash Sprite, Hero, Red, 0.3 Seconds.
10. Step 4.
11. Step 5, 4th sequence.
12. Step 10.
13. Step 5, change frieza to the regular walking graphic.
14. Subtract 1 from the variable “Goku HP”.
15. Change your 8-way run switch ON.
16. Create a fork option, make it “Goku HP” is equal to zero.
17. Under the fork option, 3rd command page, game over.
End. Your page should look like this:
(PAGE 3)
This is the page when Frieza is dead. Make it parallel process, under hero, and make the condition switch “Frieza Dead” is ON. Make the graphic for this page BLANK!!!!!!!
Your page should look like this:
There you go, enjoy! Feel free to post if you get any bugs when you do it.
~Shock out