JS Game Having Problems | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

JS Game Having Problems

Hi, I'm having a ton of problems with a small, fun game I was working on using the oversimplified p5js framework. The game features a ninja who must face enemies until the final boss at score 20. I am starting to make a boss that will go up and down according to your movements, and fire bullets at you. (I purposely set the score at 18 to bug test the boss level). However, I am having problems where I can't get the boss level to work: I cannot implement a mechanism that lowers your health when the boss shoots you. I also cannot get the health to decrease in increments, rather than continuously as through a loop. If you find any other things to be improved, thank you! However, the problems that I listed are the priority for me, and it would be great if someone helped out. Code is here: https://editor.p5js.org/MattGrim/sketches/BkP-MJe-V

25th Feb 2019, 8:07 PM
Matthew Grimalovsky
Matthew Grimalovsky - avatar
1 Answer
+ 4
//Coder p5js help here
12th Apr 2019, 12:03 PM
Sudarshan Rai
Sudarshan Rai - avatar