Help - Search - Members - Calendar
Full Version: [VX] Picture Menus
RPG RPG Revolution Forums > Scripting > Event Emporium > Eventing Tutorials
Alt_Jack
Yep, I'm back. I brought something neat with me, too. It's a menu system, but it uses pictures instead of words. It shows you a bunch of pictures, then you "point" to the one you want (hold a direction key) and hit enter, then it "moves" the cursor over to the picture and selects it.

event code
show picture 1, name, upper left (100,00)
show picture 3, arrow, upper left (200,00) (your arrow HAS to be the top-most picture, otherwise it'll disappear)
show picture 2, name, upper left (300,00)
label: start
text-transparent: ...
set move route player (repeat) wait: 60 frames (locks him in place)
condition branch: the down button is being pressed (nothing, unless there's another picture)
branch end
condition branch: the left button is being pressed
move picture 2, upper left (100,00)
text: are you sure?
yes: show balloon: player, heart
wait 60 frames
when no move picture 2, upper left (200,00)
jump to label: start
branch end
condition branch: the right button is being pressed
move picture 2, upper left (300,00)
text: are you sure?
yes: show balloon: player, heart
wait 60 frames
when no move picture 2, upper left (200,00)
jump to label: start
branch end
erase pic 1
erase pic 2
erase pic 3


actually, that's not entirely accurate; holding the direction button, then hitting Enter triggers the picture to move. It's a picture, not an actual cursor. It just creates this illusion in a flimsy sort of way. But, it has the potential to be the start of bigger, better things.
The position co-ordinates are also relative, and require a bit of playing around with. Just remember to keep the arrow as the top-most picture, otherwise it'll disappear
kayden997
Could you maybe provide a demo :3
Alt_Jack
http://www.youtube.com/watch?v=8eDiqu9Us9E...&lf=mh_lolz

happy.gif

There were also some corrections made to the code.
incarnum
I think this is interesting... hmm, Ill have to come back to it when im not exausted! otherwise i wont be able to follow along.

GG
Alt_Jack
QUOTE (incarnum @ Mar 22 2012, 09:58 PM) *
I think this is interesting... hmm, Ill have to come back to it when im not exausted! otherwise i wont be able to follow along.
GG


I also have a picture/art gallery event in the Event submissions section; might be something to look over, too, O' masterful artist. wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.