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

How do i spawn a cube using Javascript?

$
0
0
Hey! Im creating a really simple enemy script where the enemy(cube) takes damage and when health reaches zero, the cube disappears! I found out you could use Destroy (gameObject), so i tried using that and it worked. Naturally I tried using Create (gameObject), but it dident work. Are there any way i can spawn a cube using Javascript? Ive tried some methods, but seems like i really can't get it.

Viewing all articles
Browse latest Browse all 1488

Trending Articles



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