Premium Features

Download Video

Randomize Attacks

Published 3 months ago

It's important that our enemies have a random chance of selecting various attacks, otherwise, our game would be quite dull with Draggle activating "Tackle" 24/7. Here we'll learn a quick technique for randomizing the attacks available to an enemy.


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.