Back to Forum
my projectiles in the game sometimes go throught the enemy
kindahytz posted 5 years ago

https://drive.google.com/file/d/1LZg7mkT33BR4cWj4wYh-eoCZbz-kqZmL/view?usp=sharing link to the video footage

my javascript code is

https://drive.google.com/file/d/111vw0nd3rfBAJVoHSICWF6p6gEslyx1_/view?usp=sharing

the problem is that the projectile sometime goes through the actual enemy kills the enemy but the projectile doesn't get deleted and im very confused to why that is since i checked the code with what chris has and it looked identical

chris's profile photo
chris posted 5 years ago

Hey kindahytz, believe I answered this in one of the video comments, but in case you need it, there's a video in the course that fixes exactly this!

https://chriscourses.com/courses/javascript-games/videos/bug-fixes-and-touch-ups

kindahytz's profile photo
kindahytz posted 5 years ago

oh thanks sorry for late reply i was away

Want to participate?

Create a free Chris Courses account to begin

Providing the lift to launch your development career

© 2026 Chris Courses. All rights reserved.