Video Thumbnail

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

UNLOCK LESSON

Premium Features

Download Video

Check for Character Collision

Published 8 months ago

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 5 months ago
0
c
cartman posted 6 months ago
0
s
sethix777 posted 8 months ago
0

Providing the lift to launch your development career

© 2023 Chris Courses. All rights reserved.