How to Show a Picture

Discussion in 'RPG Maker VX Ace' started by paulkadots, Aug 8, 2013.

Thread Status:
Not open for further replies.
  1. paulkadots

    paulkadots Villager Member

    Messages:
    26
    Likes Received:
    0
    First Language:
    English
    How do you make a picture appear when the character moves closer to like a picture frame

    PLEASE HELP!!...
     
    #1
  2. IMHunter

    IMHunter Elite Member

    Messages:
    16
    Likes Received:
    1
    Location:
    MURICA
    First Language:
    english
    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
     
    #2
  3. paulkadots

    paulkadots Villager Member

    Messages:
    26
    Likes Received:
    0
    First Language:
    English
    Why it still doesn't work? what did i do wrong?

    Question2.png
     
    Last edited by a moderator: Aug 8, 2013
    #3
  4. Shaz

    Shaz Veteran Veteran

    Messages:
    37,911
    Likes Received:
    11,584
    Location:
    Australia
    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.
     
    #4
  5. paulkadots

    paulkadots Villager Member

    Messages:
    26
    Likes Received:
    0
    First Language:
    English
    I'ts kinda hard for me to understand...coz i'm just new at this ....
     
    #5
  6. Shaz

    Shaz Veteran Veteran

    Messages:
    37,911
    Likes Received:
    11,584
    Location:
    Australia
    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?
     
    #6
  7. paulkadots

    paulkadots Villager Member

    Messages:
    26
    Likes Received:
    0
    First Language:
    English
    What I mean is when the character approaches the picture frame,the picture appears on the screen....
     
    #7
  8. Shaz

    Shaz Veteran Veteran

    Messages:
    37,911
    Likes Received:
    11,584
    Location:
    Australia
    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: Aug 8, 2013
    #8
  9. paulkadots

    paulkadots Villager Member

    Messages:
    26
    Likes Received:
    0
    First Language:
    English
    Yeah!,exactly.... :D   :D
     
    #9
  10. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,969
    Location:
    Philippines
    First Language:
    Tagalog
    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...
     
    #10
  11. Shaz

    Shaz Veteran Veteran

    Messages:
    37,911
    Likes Received:
    11,584
    Location:
    Australia
    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.
     
    #11
  12. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,969
    Location:
    Philippines
    First Language:
    Tagalog
     
    Last edited by a moderator: Aug 8, 2013
    #12
  13. Shaz

    Shaz Veteran Veteran

    Messages:
    37,911
    Likes Received:
    11,584
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    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?
     
    #13
    paulkadots likes this.
  14. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,969
    Location:
    Philippines
    First Language:
    Tagalog
    which is why we need to see an in-editor screenshot of this...
     
    #14
    paulkadots likes this.
  15. paulkadots

    paulkadots Villager Member

    Messages:
    26
    Likes Received:
    0
    First Language:
    English
    Ok I've done something wrong.....when the picture appeared on the screen....it just stayed there....how would i fix this???????
     
    #15
  16. Shaz

    Shaz Veteran Veteran

    Messages:
    37,911
    Likes Received:
    11,584
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    It's meant to stay there. You need to do an Erase Picture to get rid of it.
     
    #16
  17. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,969
    Location:
    Philippines
    First Language:
    Tagalog
    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: Aug 8, 2013
    #17
  18. Shaz

    Shaz Veteran Veteran

    Messages:
    37,911
    Likes Received:
    11,584
    Location:
    Australia
    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.
     
    #18
    Engr. Adiktuzmiko likes this.
  19. Celianna

    Celianna Tileset artist Global Mod

    Messages:
    10,527
    Likes Received:
    5,533
    First Language:
    Dutch
    Primarily Uses:
    RMMV
    I would adjust Shaz's way and use this script condition instead;

    Code:
    $game_player.moving?
     
    #19
    GrandmaDeb likes this.
  20. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,969
    Location:
    Philippines
    First Language:
    Tagalog
    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)...
     
    #20
Thread Status:
Not open for further replies.

Share This Page