Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by industrialradio

Trying to figure out how to make my enemies fire projectiles if anybody can point me in the right direction that would be great

1 decade ago by dominic

Have a look at the Jump&039;n'Run example from your download page. The Player can shoot grenades - which are just other entities, put into the game world with #ig.game.spawnEntity().

So, just do the same for your enemies. Create a new projectile enemy and spawn it when the enemy wants to shoot.

1 decade ago by stahlmanDesign

You can also use the distanceTo(EntityName) method to find the angle to shoot in the direction of an entity, as opposed to just left or right.
Page 1 of 1
« first « previous next › last »