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
How do you make a picture appear when the character moves closer to like a picture frame

PLEASE HELP!!...
 

IMHunter

Elite
Member
Joined
Aug 7, 2013
Messages
16
Reaction score
1
First Language
english
Primarily Uses
1. Create an event near the picture frame.

2. Open the list of script commands. (ie. Show text, show choices

3. go to the second page and click, Show picture...

4. if you havent inserted your picture in resource manager, do so

5. choose the picture you want to show...

6. in triggers, choose "Player Touch"

I hope this helped
 

paulkadots

Villager
Member
Joined
Jul 25, 2013
Messages
26
Reaction score
0
First Language
English
Primarily Uses
Why it still doesn't work? what did i do wrong?

Question2.png
 
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
What is the size of your picture that you want to show?


Note:


If you want a picture to appear IN the picture frame, do not use Show Picture.


Show Picture attaches the picture to the screen, not to the map. This means as you walk around, the picture will move to keep up with the player. If you want a picture to appear IN a picture frame that's on the map, this is not what you want to happen.


If that's what you want to do, set your picture frame up as an event. On page 1 it will be an empty picture frame (or blank, if the frame is already a part of the map). On page 2, it will be the picture you want to appear. In the Conditions section, add a new switch. When the switch is off, page 1 (blank frame) will show. When the switch is on, page 2 (picture in frame) will show.


Now in the event you've shown here, instead of Show Picture, use a Control Switches command, and turn on the switch that you're using as a condition on the other event.
 

paulkadots

Villager
Member
Joined
Jul 25, 2013
Messages
26
Reaction score
0
First Language
English
Primarily Uses
I'ts kinda hard for me to understand...coz i'm just new at this ....
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Well, what are you trying to achieve? What is the picture? Is it supposed to be in the frame, or is it supposed to cover the whole screen or part of the screen? What should happen to it as the player moves around?
 

paulkadots

Villager
Member
Joined
Jul 25, 2013
Messages
26
Reaction score
0
First Language
English
Primarily Uses
What I mean is when the character approaches the picture frame,the picture appears on the screen....
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
what picture appears on the screen? A picture IN the picture frame? Is the frame previously empty?


Or do you want the picture visible IN the frame, but when they approach, it zooms out to cover the whole screen?
 
Last edited by a moderator:

paulkadots

Villager
Member
Joined
Jul 25, 2013
Messages
26
Reaction score
0
First Language
English
Primarily Uses
Yeah!,exactly.... :D   :D
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
since you're using player touch, make sure that the player can actually touch the event... 

I think the problem here is that the event doesn't fire because the player don't "touch" the frame... You're using below characters priority for the event which most probably means that the player must be directly on the tile for the player touch event to fire...
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Okay, then the Show Picture IS the correct way to go. Which leads me back to my original post ... what are the dimensions of the picture you're trying to show? As long as it has the correct name and it's in the correct folder, that command should make it appear on the screen.


You will also need another event to tell it to delete the picture when you walk away from it. Otherwise the picture will stay on the screen.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
As long as it has the correct name and it's in the correct folder, that command should make it appear on the screen./quote]
From my experience, if the pic does not exist, it returns an error upon trying to show it... so I doubt it since he didn't say that it gives an error...

Personally I think it has something to do with this player touch event + below characters priority... or the size of the pic as you said...

Can you show as a screenshot of the event in the map editor?
 
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
1. Create an event near the picture frame.
since you're using player touch, make sure that the player can actually touch the event...
Yeah, I assumed, since the instruction was to create an event NEAR the picture frame (that the player would walk on), that the player could touch it. You're right, if the event is ON the picture frame, then the player won't be able to touch it. Paulkadots, this event needs to be on the FLOOR. Is it?
 

paulkadots

Villager
Member
Joined
Jul 25, 2013
Messages
26
Reaction score
0
First Language
English
Primarily Uses
Ok I've done something wrong.....when the picture appeared on the screen....it just stayed there....how would i fix this???????
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
It's meant to stay there. You need to do an Erase Picture to get rid of it.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
As Shaz said, you need another event to catch when you leave that place... You can either have a parallel event that checks position of the character, and removes the pic when he's not in that tile...

else, make events around that tile that when you step on them, you remove the picture...
 
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
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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
btw, make sure that your char doesn't have any teleport options at that tile, coz that may cause problems... (assuming pics stay upon change map)...
 
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