Premium Features

Download Video

Attacks - Tackle

Published 4 months ago

Here we will learn how to create an attack which'll be reusable between our player and our enemy. We'll use event listeners, data objects, and animations to create a tackle attack that is very similar to what you can find in your typical Pokémon games.

  • 0:59 - Add Event Listeners to Attack Buttons

  • 4:19 - Create Attack Method on Player Sprite

  • 12:56 - Opacity animation

  • 16:18 - Animate Health Bar on Hit

  • 19:38 - Add Reusable Enemy Tackle


Want to participate?

Create a free Chris Courses account to begin


No comments yet, be the first to add one

Cheat Sheet Preview

Download The Official Chris Courses HTML5 Canvas Cheat Sheet

Essential canvas syntax at your fingertips.

Download Now

Providing the lift to launch your development career

© 2022 Chris Courses. All rights reserved.