Step 8 – Attack Buttons

Button Commands


  • To actually use our attacks and finish the game we’re making, we have to add buttons. The Controllers section has the “on A button pressed” block.
  • Inside, we add the basic attack functions for us and our enemy (attack1 and attack2) separated by a pause block to allow animations to finish.
  • For the special attack, we just duplicate our first blocks and replace attack1 with “specialAttack”. Don’t forget to change A buttong to B button. Now, when the game is waiting for input, you can pick your attack and use it!
  • Make sure to playtest your game so you can change your animations and pause breaks to have good timing!