V
Vincent
Guest
Hello! I'm trying to create a hp system that works with the classical hearts, but I've tried, written and re-written the code, and I can't figure out why all the hearts appear empty (subimage 0 in the sprite)
Player's create event
Player's step event
Health object's step event
Thanks for your time!!
Player's create event
Code:
global.salud = 11
Code:
if (place_meeting (x+1, y, obj_arana))
{
global.salud = global.salud - 1
}
Code:
image_index = global.salud