Post by rcrmaker on Oct 29, 2005 15:14:59 GMT -5
This is my second tutorial. If you've ever wanted to make a tutorial where these guys hide all over your maps and you have to find them all, and you get a prize, then this is a tutorial for you.
YOU WILL NEED TO KNOW ABOUT:::
1. SWITCHES
2. VARIABLES
3. FORK CONDITIONS
I can't TELL you, so I will put it in coding. But first make a map, say 40x40 and go to the events tab and make 3 events with graphix of some kids. (They are who you will be finding.) Put them side by side. Now name the events, Event 1, Event 2, and Event 3.
In Event 1, double click in the white space and go to Show Message:
<>Messg: If you find us, you will get a prize!!!
<>Set Screen Tone:(R000,G000,B000,S000),1.0sec(W)
<>Change Switch: [0022:Hiders Dissappear]-ON Set
<>Wait: 1.0s.
<>Set Screen Tone:(R100,G100,B100,S100),1.0sec(W)
<>
Now make a page 2 in the 3 events you've made and set graphic to blank (Pink) tile, and autostart. check the box beside switch and put in the switch you made.(Hiders Dissappear. Now make 4 events spread around the area and check the switch box again and put in the same switch, but instead of no graphic, put in their regular graphics this time. Name the three seperate events Hider1,2,and 3.
Make each of them push key and the following coding.
<>Variable Ch:[0023:Hider Found]+ ,1
<>
Now before heading on go ahead and make 3 switches. Hider 1,2,3. NOT IN this event, but go ahead and make them.
Now in Hider1 under the variable set the switch Hider 1 ON.
So in the event Hider 1, the coding should look like:
<>Variable Ch:[0023:Hider Found]+ ,1
<>Change Switch:[0019:Hider 1]-ON Set
<>
Now make a new page in this event and make switch Hider 1 CHECKED and make it a blank EVENT.
Now go to event Hider 2 and make do the same, but make switch Hider 2, it should look like this:::
<>Variable Ch:[0023:Hider Found]+ ,1
<>Change Switch:[0020:Hider 2]-ON Set
<>
Now make a new page in this event and make switch Hider 2 CHECKED and make it a blank EVENT.
Now go into event Hider 3 and the coding should look like:
<>Variable Ch:[0023:Hider Found]+ ,1
<>Change Switch:[0021:Hider 3]-ON Set
<>
Now make a new page in this event and make switch Hider 3 CHECKED and make it a blank EVENT.
Now, remember the first three events we made?(Event1, 2 and 3???) Well, now go in event 1 and make a new page. Check the bbox and put in the HIDER 1 Switch we made. Make the graphic of the same one on the first page. Now...Make the variable so that when it reaches 3(when you've found everyone) the leader (Event 1) gives you a prize. Basically the coding looks like this:::
<>FORK Optn:Varbl[0023:Hider Found]-3
<> Messg: Congrats! You've found everyon and you get the prize (whatever).
<> Add/Remove Item: ?->??Incr.
<> Change Switch:[0024:All found]-ON Set
<>
<>:ELSE Case
<> <>Messg:Oh No! You still have one more person to find!
<>
<>:ELSE Case
<>FORK Optn:Varbl[0023:Hider Found]-1
<>Messg:You still have the other 2 to find!
<>
<>:ELSE Case
<>
<>:END Case
<>
<>:END Case
<>
<>:END Case
<>
WHew! That was a lotta coding, eh? Now go to the EVENT Event 1 and make a new page and put check in the switch box and put in switch ALL FOUND that we made above. In the event box put:
<>
<>Messg: Thanks for playing Hide and seek!
<>
Now you've made your own mini-game. (Not quite mini now is it?) ;D
YOU WILL NEED TO KNOW ABOUT:::
1. SWITCHES
2. VARIABLES
3. FORK CONDITIONS
I can't TELL you, so I will put it in coding. But first make a map, say 40x40 and go to the events tab and make 3 events with graphix of some kids. (They are who you will be finding.) Put them side by side. Now name the events, Event 1, Event 2, and Event 3.
In Event 1, double click in the white space and go to Show Message:
<>Messg: If you find us, you will get a prize!!!
<>Set Screen Tone:(R000,G000,B000,S000),1.0sec(W)
<>Change Switch: [0022:Hiders Dissappear]-ON Set
<>Wait: 1.0s.
<>Set Screen Tone:(R100,G100,B100,S100),1.0sec(W)
<>
Now make a page 2 in the 3 events you've made and set graphic to blank (Pink) tile, and autostart. check the box beside switch and put in the switch you made.(Hiders Dissappear. Now make 4 events spread around the area and check the switch box again and put in the same switch, but instead of no graphic, put in their regular graphics this time. Name the three seperate events Hider1,2,and 3.
Make each of them push key and the following coding.
<>Variable Ch:[0023:Hider Found]+ ,1
<>
Now before heading on go ahead and make 3 switches. Hider 1,2,3. NOT IN this event, but go ahead and make them.
Now in Hider1 under the variable set the switch Hider 1 ON.
So in the event Hider 1, the coding should look like:
<>Variable Ch:[0023:Hider Found]+ ,1
<>Change Switch:[0019:Hider 1]-ON Set
<>
Now make a new page in this event and make switch Hider 1 CHECKED and make it a blank EVENT.
Now go to event Hider 2 and make do the same, but make switch Hider 2, it should look like this:::
<>Variable Ch:[0023:Hider Found]+ ,1
<>Change Switch:[0020:Hider 2]-ON Set
<>
Now make a new page in this event and make switch Hider 2 CHECKED and make it a blank EVENT.
Now go into event Hider 3 and the coding should look like:
<>Variable Ch:[0023:Hider Found]+ ,1
<>Change Switch:[0021:Hider 3]-ON Set
<>
Now make a new page in this event and make switch Hider 3 CHECKED and make it a blank EVENT.
Now, remember the first three events we made?(Event1, 2 and 3???) Well, now go in event 1 and make a new page. Check the bbox and put in the HIDER 1 Switch we made. Make the graphic of the same one on the first page. Now...Make the variable so that when it reaches 3(when you've found everyone) the leader (Event 1) gives you a prize. Basically the coding looks like this:::
<>FORK Optn:Varbl[0023:Hider Found]-3
<> Messg: Congrats! You've found everyon and you get the prize (whatever).
<> Add/Remove Item: ?->??Incr.
<> Change Switch:[0024:All found]-ON Set
<>
<>:ELSE Case
<> <>Messg:Oh No! You still have one more person to find!
<>
<>:ELSE Case
<>FORK Optn:Varbl[0023:Hider Found]-1
<>Messg:You still have the other 2 to find!
<>
<>:ELSE Case
<>
<>:END Case
<>
<>:END Case
<>
<>:END Case
<>
WHew! That was a lotta coding, eh? Now go to the EVENT Event 1 and make a new page and put check in the switch box and put in switch ALL FOUND that we made above. In the event box put:
<>
<>Messg: Thanks for playing Hide and seek!
<>
Now you've made your own mini-game. (Not quite mini now is it?) ;D