Working on the Enemy Attack State Lecture

Followed the steps in the lecture exactly - not working as expected. When the player hurtbox and enemy hitbox are overlapping, the player health does not go down for some reason. However, the behavior seems to be working when player hitbox and enemy hurtbox overlap → enemy health does go down.

Is there anything else Luis did that wasn’t captured in the video?

Hi Shashank_Rai,

Sorry to hear you are having some issues with your project.
When i QA courses i follow along with the content the same way a student would and i did not encounter this issue so everything has been covered in the video.
Without seeing the set up of your collision boxes and the code you have its a little hard to diagnose where the issue might occur.

I would first suggest adding some print statements to find where it is breaking down to see if its happening at the collision level or if its the damage code that is at fault.

If you can also let us know which lecture this is as it appears the tagging may not have worked on this occasion and also posting the code that you have as a second set of eyes can often help to find errors (I’ve even had to have someone look at my code to point out an error i have made in the past)

As you are possibly aware we are switching to a new platform soon and although we will continue to check questions here we will be also switching support on to the new platform, I just thought it worth mentioning here in case we resolve this issue and you need to post for another issue later on in the course.

Hope this helps and do let us know on the information requested above and either @FossRyan or myself will be happy to help

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms