How to Show a Picture

Status
Not open for further replies.

paulkadots

Villager
Member
Joined
Jul 25, 2013
Messages
26
Reaction score
0
First Language
English
Primarily Uses
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
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
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.
 

paulkadots

Villager
Member
Joined
Jul 25, 2013
Messages
26
Reaction score
0
First Language
English
Primarily Uses
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?
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
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?'
 

paulkadots

Villager
Member
Joined
Jul 25, 2013
Messages
26
Reaction score
0
First Language
English
Primarily Uses
still doesn't work..... ;_;   ;_;   ;_;   :headshake:   :headshake:
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
That doesn't help us.


Please show us a screenshot of your event (both event pages).
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You didn't set it to parallel process.
 
Last edited by a moderator:

paulkadots

Villager
Member
Joined
Jul 25, 2013
Messages
26
Reaction score
0
First Language
English
Primarily Uses
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
 

paulkadots

Villager
Member
Joined
Jul 25, 2013
Messages
26
Reaction score
0
First Language
English
Primarily Uses
Oh Never Mind I've figure it out....thanks y'all!
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
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.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,081
Members
137,582
Latest member
Spartacraft
Top