+Ace+ Clickable Images

I'm trying to make a visual novel with certain specialized elements, and it's occured to me that the best way to do this is by using RPG Maker.

However, there's just one thing I need: A script to have an event show pictures on the screen that function as clickable buttons to process choices.

This would also be useful for having buttons linked to a custom menu, or for adding point-and-click elements to backgrounds.
You would need a mouse script in order to make "clickable" anything. Do you have a mouse script?
You would need a mouse script in order to make "clickable" anything. Do you have a mouse script?
Currently I'm using Falcao's, but I haven't found a way to use it in the way I'm trying to.
If you want any help with any script, you have to link to the script - we can't help if we don't know what you need help with.


That said, there is also Galv's Visual Novel Choice Script that changes the display of the show choices to be more like visual novels without using a mouse.


http://galvs-scripts.com/2012/11/26/visual-novel-choices/
If you want any help with any script, you have to link to the script - we can't help if we don't know what you need help with.

That said, there is also Galv's Visual Novel Choice Script that changes the display of the show choices to be more like visual novels without using a mouse.

http://galvs-scripts.com/2012/11/26/visual-novel-choices/
Well it's not specifically help with one script I need, just any script that'll allow me to click pictures as part of events.

Is this the link you need?

http://www.rpgmakervxace.net/topic/6032-mouse-system-buttons-25-update/
Yes, so what is your problem with the script? It should allow you to define any button you need.


EDIT:


If you're unfamiliar with how to use scripts in general, you might want to work through this tutorial:


http://forums.rpgmakerweb.com/index.php?/topic/40589-how-to-use-a-script/
Yes, so what is your problem with the script? It should allow you to define any button you need.

EDIT:

If you're unfamiliar with how to use scripts in general, you might want to work through this tutorial:

http://forums.rpgmakerweb.com/index.php?/topic/40589-how-to-use-a-script/
I haven't found a way to use it to define a picture as a button.

Like, as part of an event page, you have "Display Picture". That pops up. I can't find a way to use the script to now use clicking on that picture to trigger part of a choice branch.
That's not how mouse scripts work.


The exact functions depend on the script used (I haven't checked the one you provided) but basically all mousescripts have only the full screen and report coordinates when the player clicks somewhere.


And then the script's data is checked "is something at that position? should I trigger something?".


So you need to tell the mouse script "here will be a picture, if the player clicks between coordinates X and Y then trigger this function".


The mouse script cannot guess the size of the picture, you need to tell it that - that's your task as a developer.


Some mouse scripts have parts for that predefined to help the developer making things easier - have you checked the instructions for falcao's script how your buttons need to be defined for that script?


Because in all cases, YOU have to define the button - no mouse script can autodetect a picture and know what to do in that case.
That's not how mouse scripts work.

The exact functions depend on the script used (I haven't checked the one you provided) but basically all mousescripts have only the full screen and report coordinates when the player clicks somewhere.

And then the script's data is checked "is something at that position? should I trigger something?".

So you need to tell the mouse script "here will be a picture, if the player clicks between coordinates X and Y then trigger this function".

The mouse script cannot guess the size of the picture, you need to tell it that - that's your task as a developer.

Some mouse scripts have parts for that predefined to help the developer making things easier - have you checked the instructions for falcao's script how your buttons need to be defined for that script?

Because in all cases, YOU have to define the button - no mouse script can autodetect a picture and know what to do in that case.
So there's no way to just tag / comment a picture shown with Display Picture so that it can be clicked as part of an event page? Seems like that should be a pretty simple thing to implement.
You can do it just as you have described.

Event with 'show picture command' set to 'same as characters', adjust the x,y coordinates to wherever you want the picture to show.

When that event is clicked, the picture shows.

That works perfectly with Shaz's mouse script.  I can't speak about others as I only use Shaz's.

Unless you want something else to happen?  If so, could you please explain in a bit more detail.

EDIT

To make the picture disappear

If you want it to display for a set amount of time, 

show picture

wait x frames

erase picture

If you want it to stay until the player has finished looking at it

show picture

show text - nothing in the dialogue box and set to transparent

erase picture.
@ksjp17: no, that's not what he wants.


If I understood correctly, he wants to display a picture (of variable size) as a button, and when that picture (NOT the event) is clicked, something should happen.

Seems like that should be a pretty simple thing to implement.
No, that is anything but simple - because to the computer, there are no "buttons" - it would need to detect the size of the picture (and that would only work for rectangular buttons, not buttons where part of the picture is invisible), then it would need to detect where that picture is placed on the screen, then define that area for the mouse script and a few more steps.
Just because you (as a human) can describe something in three or four words, that doesn't mean that the computer can do the same.


And a lot of things that are simple to describe are extremely complex to implement in the computer.
You need to have a mouse script that provides the functionality you're after. Most of the mouse scripts available for RPG Maker simply allow you to use the mouse instead of the keyboard - that means, if you can't do it with the keyboard, you probably can't do it with the mouse.


If you want pictures to behave a certain way when the mouse is moved over them and clicked, then you need to add that functionality to the mouse script. It's unlikely that any of them will do it.


If you only want to wait until the player clicks - anywhere - and then remove the picture, then do just as ksjp17 described. The Show Text with no text will make the game wait until the player clicks with the mouse. But they won't have to have the mouse icon specifically over the picture.
Alright, since this is going to cause me problems, I have another idea of how to solve it.
Rather than use mouse controls, I could just have a sprite-less actor in the background with four events set to Player Touch and priority Same As Characters. Then after a scene is done, I could have four directional options appear over the background, and whichever way you press to move, you transfer to the map represented by that direction.
This would leave room for a whole bunch of other events dotted around the "map".

Original thread: https://forums.rpgmakerweb.com/threads/ace-clickable-images.41937/