Video Thumbnail

Sign up for a plan to instantly unlock all premium lessons.

UNLOCK LESSON

Premium Features

Download Video

Check for Character Collision

With characters rendered out in their corresponding positions, it is time we determine whether or not our player and characters are colliding. This is step one in the process of prompting a conversation—before we actually pop up a dialogue box, we need a way to tell who we're colliding with so we know what speech to use.

Similar to detecting for collision with our map boundaries, we need to loop through each of our characters, then run collision detection code between them and our player.

  • 0:00 Lesson summary

  • 1:29 Begin character collision implementation

  • 9:34 Fix character sizing

  • 11:52 Fix broken sprite animation

  • 15:22 Collision detection on all four sides

  • 16:43 Create dedicated collision function

  • 23:39 Refactor functions into separate utils file

Comments

Want to participate?

Create a free Chris Courses account to begin

Login
r
rurigrass posted 3 years ago

Hey Chris,

When will you be releasing the following videos for this course?

I paid a month's subscription for your courses specifically to be able to finish this and I'm quite disappointed the last videos have not been released yet :(

That aside, I'm really enjoying the course and the game looks great :D

0
c
cartman posted 3 years ago

hello Chris, when will u release the rest of the premium videos ;( ?

0
s
sethix777 posted 4 years ago

These videos have been incredible! I have completed all of them and they have been essential in my journey learning/solidifying my javascript skills. I just purchased a membership hoping to start getting NPC interaction implemented in my game. I know these must take a lot of time for you to produce, but I can't wait for the next one! Thanks for your efforts!

0

Providing the lift to launch your development career

© 2026 Chris Courses. All rights reserved.