[SOLVED] Enemy script - Boss fight?

this? // update code called every frame
Enemy.prototype.update = function(dt) {

this.damagetime -= dt;

or this

// initialize code called once per entity
Enemy.prototype.initialize = function() {
this.damagetime = this.damageTime;
//this.entity.collision.on(‘triggerenter’, this.onTriggerenter, this);

};

1st

1 Like

thanks!

@Gabriel_Dobrzynski,
yes it is possible to make cutscenes by using the change scene code when you want the cutscene to trigger and you can take it from there.