Show picture problem

Hey all,
I want to make a health bar appear at the bottom left of the screen...but something isn't working ^^'

here is the graphic i made :
10.png

(with variation for every hit taken)

and here is my event :
1674156028834.png


when the variable hero HP reaches 10, it's game over (each time an enemy hits the character, it adds 1)
(i'm making an ABS)

none of the picture shows up so...i'm kinda lost.
any help will be greatly appreciated !!
thanks in advance 🙂
Hey all,
I want to make a health bar appear at the bottom left of the screen...but something isn't working ^^'

here is the graphic i made : View attachment 251047
(with variation for every hit taken)

and here is my event : View attachment 251048

when the variable hero HP reaches 10, it's game over (each time an enemy hits the character, it adds 1)
(i'm making an ABS)

none of the picture shows up so...i'm kinda lost.
any help will be greatly appreciated !!
thanks in advance 🙂
Have you turned switch 1 on to activate the event? And what is updating the value of variable 8?
Have you turned switch 1 on to activate the event? And what is updating the value of variable 8?
yup, the switch is on !
and i don't understand what you mean by variable 8 ...
and i don't understand what you mean by variable 8 ...
Every single conditional branch in your entire event is looking at variable 8 (which you've labeled "Hero HP," but it still also shows it's variable 8).

Trihan is asking you to show how that variable's value is being set/changed.
1674160951025.png

i see!! well that's the event that lets the enemy damage the player
yup, the switch is on !
and i don't understand what you mean by variable 8 ...
As @ATT_Turan said, your event uses variable 8's value to determine which picture to show, but unless you actually set that variable's value to something, it will always be 0 so I needed to know where you expected it to be changing to see if that's the problem.

And this event is definitely running? Pages 2 and 3 both have conditions that prevent them taking precedence over page 1, I take it?
Edit: Accidental double post as OP replied just after me, I'll edit into the original response.
this event is fully functionnal !
this event is fully functionnal !
If you put something more easily verifiable like a message command into the "1" branch of your common event, does it show up when you take damage?
I have opened the picture and I see that's the actual resolution is 544x416, instead of the Rm2k/2k3 screen resolution (320x240).
Maybe the code could be working and the picture is appearing, but the content has been shown out of the screen bounds.

Check the resolution and fix it resizing to 320x240.

In the other hand, I do not recommend to use a large picture to show just a piece of its content. The best practice is to create a picture that fit all over the image area and set the position using variables to ease your maintenance.
Just to point it out, it isn't breaking your event, but you have listed twice the condition for HP being == 9. That seems unnecessary.
i tried and the message showed up
In the other hand, I do not recommend to use a large picture to show just a piece of its content. The best practice is to create a picture that fit all over the image area and set the position using variables to ease your maintenance
oh, yes! how would i do that ? i'm kinda new ^^'
Just to point it out, it isn't breaking your event, but you have listed twice the condition for HP being == 9. That seems unnecessary.
OH THANKS XD i didn't notice !
oh, yes! how would i do that ? i'm kinda new ^^'
Do whatever you did to make the images in the first place but make your canvas size the same as your game's resolution.
oh, yes! how would i do that ? i'm kinda new ^^'

Like this:

support_hp.png

The image is filling all the canvas area. In your case, keep the maximum size to every picture variations.

So you can do this, for example:
suuport_example.png

In your code, you may initialize the variables first and then you put those conditions containing the Show Picutre calls using the variables that you used to place the picture. If the picture is not in a desired position you just need to set these variables instead of to set all the Show Picutre calls.
Yay it worked !!! thank you all so much !

Original thread: https://forums.rpgmakerweb.com/threads/show-picture-problem.154248/