Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

Checking enemy death and adding score issue Javascript

$
0
0
I have two separate scripts for my Player and my Enemies...how can I call to the enemy script within the player script and check to see if a specific enemy has been destroyed in order to add to the player's score? I have 3 types of enemies in my enemy script and I want to set different numbers for when they are each destroyed.

Viewing all articles
Browse latest Browse all 1488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>