I need help making a game on here similar to the style of Pokemon battles using javascript. The only problem is that most of the information I learned in college was for randomized generators and I can’t figure out how to fix the programming problems I have.
I need help fixing the buttons so that they work and give the opponent a turn. The button “16mm Reel Smackdown” causes the opponent to lose health, “Around the World in 80 Seconds Counter Attack” causes their attack to go right back to them and “Go Fetch the Stick” leaves them confused for a few turns. I need help figuring this out. I hope someone on here has done something like this before…
So far, this is what it looks like. You can press the buttons and, depending on the attack and the outcome, it should cause the opponent’s health to decrease. The only problem is that I can’t seem to make the image of the opponent, the numbers of the health or the messages meant to be displayed for each button and outcome appear.
I just did. None of the codes I have seem to be actual commands. I’m actually a beginner at this js thing, so I actually have no idea what I’m doing, honestly. I can’t seem to have anything appear on screen.