How to Show a Picture

Uhmmm Did Some Thing Wrong Again

This Is What I Did:

What I Did.pngWhat I Did2.jpg

This Is What Happened:

What Happened.png
You need to put that script in the conditional branch, not as an actual script command. On the last tab of the conditional branch, at the bottom put this script:

Code:
$game_player.moving?
It's different from the one Shaz is using, but achieves the same thing.
So I'll put this:

$game_player.moving?

Instead of this:

$game_player.x != $game_map.events[@event_id].x || $game_player.y != $game_map.events[@event_id].y

On the Script in the Conditional Branch?
Yup.


Basically my code checks if the player has taken another step, thus you know if they've stepped away from the tile.


Shaz's code does exactly the same, except it checks the exact coordinates of the event and compares to the coordinates of the player. If they're not the same, that means the player has moved. Mine just makes it simpler by reducing it to 'has the player moved?'
still doesn't work..... ;_;   ;_;   ;_;   :headshake:   :headshake:
That doesn't help us.


Please show us a screenshot of your event (both event pages).
This is what i've done

Event Page 1.pngEvent Page 2.png
You didn't set it to parallel process.
If the player is still standing on that tile, here is what I would do ...

On your event that makes the picture visible, add this command:

Control Self Switch: A = ONThen click New Event Page, and on the new page, under Conditions, check the Self Switch box (A is already selected), and under Trigger, select Parallel Process. Now enter these commands:
Code:
Conditional Branch: Script (bottom of tab 4): $game_player.x != $game_map.events[@event_id].x || $game_player.y != $game_map.events[@event_id].y  Erase Picture: 1  Control Self Switch: A = OFFBranch EndWait 4 Frame(s)
This means when you first step onto the tile with the event, the picture will be shown and page 2 of the event will become active. This constantly checks the player position, and as soon as the player leaves the tile, it erases the picture and makes the first tab active again.
I would adjust Shaz's way and use this script condition instead;

$game_player.moving?
This Is what I've done...and it still doesn't work

$Page 1.png   $Page 2.png
Oh Never Mind I've figure it out....thanks y'all!
Great, but don't double post. Report your own topic next time and ask for it to be closed.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-show-a-picture.16597/