subject

P2 laser works as intended but P1 laser does not function, it kills itself when it fires and doesn't deal damage to any P2 tank. }
for(var laserIndex1 = 0; laserIndex1 < p1laserFollowerList. length; laserIndex1++)
{
if(p1laserFollowerList[laserIndex1] .isTouching(p2TankBase) && p2Invicible == false)
{
p2CurrentHealth -= 3.5;
p2Invicible = true;
setTimeout(function()
{
p2Invicible = false;
}, 1500);
}
}
for(var laserIndex2 = 0; laserIndex2 < p2laserFollowerList. length; laserIndex2++)
{
if(p2laserFollowerList[laserIndex2] .isTouching(p1TankBase) && p1Invicible == false)
{
p1CurrentHealth -= 3.5;
p1Invicible = true;
setTimeout(function()
{
p1Invicible = false;
}, 1500);
}
}


P2 laser works as intended but P1 laser does not function, it kills itself when it fires and doesn'
P2 laser works as intended but P1 laser does not function, it kills itself when it fires and doesn'

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:30
Jasper and samantha are in a robotics competition. the guidelines state that the robots should be able to move a 10-gram weight at least 2 meters and turn in a circle. jasper and samantha have already built the robot. which step of the design process should they follow next to decide whether their robot meets the minimum criteria for the competition?
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
The ieee 802.11: defines standards for wireless local area network (wlan) communication protocols. identifies various computers or devices connected to a network. verifies any resource attached to another computer on a network that is different from the computer to which the user is logged on. connects multiple local area networks (lans) and wide area networks (wans).
Answers: 2
You know the right answer?
P2 laser works as intended but P1 laser does not function, it kills itself when it fires and doesn't...
Questions
question
Mathematics, 22.02.2021 22:00
question
Social Studies, 22.02.2021 22:00
question
Mathematics, 22.02.2021 22:00
question
History, 22.02.2021 22:00
question
Mathematics, 22.02.2021 22:00