Item Pickup Screen Event Tutorial
Today I am going to teach you, I used NO SCRIPTS to make my item Pick up screen, using events and pictures. :http://i.imgur.com/m8Jq3Mp.png
First you might need a little understanding of Variables and switches before you begin, i suggest you read tutorials on variables and switches.
First you need to do is sort out all the items you will be getting in the game, as you will need big pictures of them to fit in the square about 100x78 will probably do, Here is mine :
http://i.imgur.com/pmV9Rcc.png
You will need pictures of the text 'will you take the' and 'Item name' and 'yes/no(one picture) and the arrows. The arrow is what we will be moving using variables.
then you will need pictures of the screen, I forgot to make my screen bigger, so I have gap so you can see the maps when you open this screen. So make a picture of the background, your game screen size. :
http://i.imgur.com/kcXErqT.png
the text for choices are seperate files, so you have yes and no pictures and the 'Will you take the' and the item name as well. all are seperate picture files.
Place all of it in Graphics/Pictures folder, give it a name that is easy to recognise and easy to find. Then goes the hard part, setting the variables and pictures.
When you click on the item you want to pick up, set a switch :
http://i.imgur.com/ZOVXSZE.png
You can see i just set to action, and its also set to stepping as I have a sparkly graphic, and the switch activates a Autorun event, so when you have the screen for the item pickup, player can't move at all, until the pickup is complete.
Here's the Events for when the switch is on
http://i.imgur.com/2ibVNM8.png
Heres how I have the pictures set up :
http://i.imgur.com/DKafIgE.png
This is for the inventory background, Notice how the number is the lowest of the lot, that means it will be behind every picture that is in higher numbers.
http://i.imgur.com/rjnzLCu.png
This is a picture of the Ink ribbon it self, I am pretty bad at maths,m so those coordinates on constant are mostly Guess work and constant testing, But I pretty much got it centered of the Blue Box in the middle.
http://i.imgur.com/pfbHiXG.png
This is increasing the ink ribbon size so it looks like what happens in the resident evil games when you pick up items., How it zooms to a certain point(it also spins, but I can't get that to look right).
http://i.imgur.com/8YOAlSG.png
This is a picture of the Text asking you to take the stuff. Again the coordinates are Guessing and testing. I also decreased the Picture size alot
http://i.imgur.com/JO6Kmhv.png
This is a picture of the text saying the item name in green text, i decreased the text size.
http://i.imgur.com/xVqN3vx.png
Here is the yes and no choices. again a picture of text saying yes and no, its a whole one picture, just a bug gap between them both.
http://i.imgur.com/CRayLPe.png
This white arrow, is what we will be moving using the variables, its the highest number as its on top of everything else.
This step is sorting the variables and switches so the Arrow Actually moves when u wnat to press yes or no, Here is how mine is set up, Remember its only two choices.
http://i.imgur.com/neNLpMX.png
http://i.imgur.com/nnTCVQ0.png
See how I have variable for the Ink ribbon, and it only increases by 1 when you press right and decreases by 1 when you press Left, its just telling it when I press right, to move the picture to the specific coordinates, and when I press Left to go back. I only used Move picture as I have the picture set up on page one.
When I press the C button on The Yes choice (Enter button on Keyboard). It tells the game to add item to inventory and to erase the pictures and reset the variables, But if I pressed enter on the No Choice, it resets the variables and switches so that i can try later to grab the item, If I don't wish to take it right now.
Its may look complicated to some people, but once you take a good look, its a very simple and easy concept.
Thanks if you use my event, be sure to credit me
本贴来自国际rpgmaker官方论坛作者:RoooodWorks处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/item-pickup-screen-event-tutorial.44323/
页:
[1]