Sign up for a plan to instantly unlock all premium lessons.
Premium Features
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
hello Chris, when will u release the rest of the premium videos ;( ?
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!
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