Can we Set Clickable-on-Certain-Area at a Picture?

Discussion in 'RPG Maker MV' started by gundriveth, Aug 7, 2017.

  1. gundriveth

    gundriveth Medievaliant Veteran

    Messages:
    91
    Likes Received:
    29
    Location:
    Indonesia
    First Language:
    Bahasa
    Primarily Uses:
    RMMV
    Hello,
    I have encountered a kind of obstacle here. Basically, I want to make a picture that can be clicked and run event in the end.

    I am using Yanfly Picture Common Event, although it can be done by 12 pictures with each attached by Common Event separately.
    But I am curious if there is another way to do it with just one picture and then the player can click certain area to go to a different conclusion. (At my case, it is a gallery to show images.)


    I also have tried using TDDP_MouseExSystem, although it can be done by events, I don't understand how to increase that mouse hitbox to be more than 48x48 px for each event, just like the picture above, the clickable area is somewhere around 102x102 px each.


    Is there a plugin or some other way to do it?

    Thank you
     
    Last edited: Aug 7, 2017
    #1
  2. Rhino

    Rhino ~Inactive~ Veteran

    Messages:
    482
    Likes Received:
    784
    First Language:
    English
    Primarily Uses:
    RMMV
    Astfgl once helped me with something similar. He wrote a small plugin to enable you to track mouse co-ordinates in a variable, and use a conditional branch for when there's a click within the right area. You can find all you need here. :kaoluv:

    I don't know if it helps, but since you said you're making a picture gallery, you might be interested in this plugin. I'm pretty sure it's got mouse functionality.

    P.s I think your image is broken. I just got a dropbox error when I tried to look.
     
    #2
    gundriveth likes this.
  3. gundriveth

    gundriveth Medievaliant Veteran

    Messages:
    91
    Likes Received:
    29
    Location:
    Indonesia
    First Language:
    Bahasa
    Primarily Uses:
    RMMV
    Hey there,
    fixed the dropbox link, my bad. xD

    Gonna check that plugin out, it looks a bit complicated at first, at least for me lol. I will post it here if I can get it work.
    Thank you @Rhino ! (And astfgl too, of course.) :kaojoy:
     
    #3
  4. Astfgl66

    Astfgl66 Veteran Veteran

    Messages:
    661
    Likes Received:
    512
    First Language:
    French
    Oh well, I came here ready to direct you to explanations I made a while ago, and it turns out Rhino beat me to it. :hswt:
    Feel free to ask if there's something unclear.
     
    #4
    gundriveth and Rhino like this.
  5. gundriveth

    gundriveth Medievaliant Veteran

    Messages:
    91
    Likes Received:
    29
    Location:
    Indonesia
    First Language:
    Bahasa
    Primarily Uses:
    RMMV
    Hello2,

    I have followed the step-by-step from the other post and finally got it right.

    This might help if someone else is searching about clicking-picture:
    Go here

    Thank you @Astfgl66 and @Rhino!
     
    #5
    Rhino likes this.

Share This Page