View Single Post
chandie

JCF Member

Joined: Jan 1970

Posts: 19

chandie has disabled reputation

Jan 28, 2020, 12:47 AM
chandie is offline
Reply With Quote
I'd like to use a regular enemy as a boss. I don't intend to change his behavior. I only change his sprites with tiles or replace them with JJ1Enemies sometimes.

I tried creating a behavior for the enemy and implement the if code below but it doesn't work.

if ( boss.energy==0&&++boss.counter>2300)
jjEventSet(play.xPos / 32, play.yPos / 32, AREA::EOL);

Is there a practical way of putting a health bar and an automatic EOL event when his energy is 0?

I am pretty new at scripting btw. Treat me as a noobie