When space is pressed and the laser moves to destroy the ships, they don’t delete. Also only one ship moves but i’m faced with an error. I’ve tried messing with the collisions and the script overall but no luck.
Here is the link to my editor
@SuperSpace The trigger script is attached to different resource types. EnemyShip(Template) has no collision associated with the entity.
EnemyShip under the Template does have a collision and it also has trigger.js
Here is the code that the debugger is pointing to.
this.entity.collision.on('triggerenter', this.ontriggerEnter, this);
I would remove the trigger script from the Template and it should work.
Apologies for the late reply, the bug went away however the ship still won’t delete from the game, and the other ships that spawn won’t move either. I’m thinking it might be something wrong with the enemySpawner code but i’m not entirely sure