The story is the following: I have a project in which there are "traps" that hurt, but when building the project those "traps" don't hurt, the enemies don't hurt either. Can you know why?
Please share the code that isn't working correctly. But you mention the enemies don't get hurt which is a run time issue. But your title says Error compiling. Do you have two separate issues?