If else Problems, Help!


#1

This is just my latest permutation of code, I can’t get else statements to work, and keep getting this error, help!


#2

I’m going to need more to go on than this if I’m going to help you. Can you share what you have so far and the level you are working on. Be sure to use [code ] tags to get your code looking pretty.


#3

Sorry, I thought I enclosed a screenshot on that first post. New here, sorry.


#4

OK, so I see and extra ; in the middle of your if statements. if statements should not have semicolons.

Next, an else statement should be by itself with nothing else:

else{
not
else enemy{


#5

Thanks. the page reloaded and I rewrote my code. This helped.