to piggyback of knight007au
create a small tick -> import tick as a tiled BG
create a variable for tick -> health
set a value for health (whatever width you want i.e. 100)
system -> on start of layout -->
tick -> set width to tick.health
tick -> set variable health to tick.health (now the current value of heath is stored)
sprite -> on collision -->
tick -> set width to tick.health - 10 (or however much you want the health bar to be reduced by)
tick -> set variable health to tick.health
tick -> health (less than or equal to) tick.width
sprite -> destroy
there may be a simpler way, but this 1 is functional
injoy!