Having an issue making all the enemeis shot at the player
in
Programming Questions
•
10 months ago
Hey guys I'm looking at my code and I'm trying to figure out how make all the enemies shot at the player right now I have to pass an argument or change something, right now I have the x and y of the bullet finding its location by putting myEnemyX and myEnemyY but the problem is i have 12 enemies and I'm not a 100% sure how do i pass the value for all 12 enemies
http://www.openprocessing.org/sketch/83538
also for some reason when I'm working in java mode I added a dmg player so i can see when its taking dmg from the bullets but when i exported for web its not showing up any idea why is that?
Also for some reason when I play it in java mode and i press the space bar it shots just fine but when its online i have to either hold down the space bar or move left and right to shoot at the same time.
http://www.openprocessing.org/sketch/83538
also for some reason when I'm working in java mode I added a dmg player so i can see when its taking dmg from the bullets but when i exported for web its not showing up any idea why is that?
Also for some reason when I play it in java mode and i press the space bar it shots just fine but when its online i have to either hold down the space bar or move left and right to shoot at the same time.
1