Evented Tent Interiors
#1
Hello and good day everybody!

Introduction

My son started his own project but he requested that I make him semi-transparent tent interiors. After playing around with that concept, I decided to write a simple tutorial so you can see how I did it.

With that said, for the sake of simplicity we'll be using the Grasslands (aka "Gralssland" lol) tileset for this tutorial, but I'm sure you can find other ways to apply this effect to your games.

Step 1 : Changing Tile Settings

First off, we'll need to make adjustment to the tileset settings. Click the "Passage (4 dir)" tab and remove the passability arrows from that portion of the tent the player can walk behind. (Image explains everything). This will make it so that, when we set up the event later, the player can still walk behind the tent as normal, but can't 'walk' through the back of it.

Just ensure the player doesn't have permission to move down from that tile.

[Image: tenttut-1.png]

Step 2 : Create a Tent

Mind you, even with one tent you have lots of copying and pasting and editing of events to do, so be prepared. First, draw your tent on your map.

[Image: tenttut-2.png]

Looks good champ! Next, we're going to have to hollow it out...

[Image: tenttut-3.png]

Yes, like that!^

This is the walkable area. Granted, you can probably make your tent longer or whatever, but I'm just going to keep things standard.

Step 3 : 1st Set of Events

Things are mostly copy and paste from here, with some little changes for the next row of tiles. For now, you're going to want to make up the 'back wall' portion of the tent, like below.

[Image: tenttut-4.png]

To make things simple, start with the top-left corner event. You're going to have two pages, and they should look like so...

Page 1

Page one is basically the tiles that represent the tent as a whole.

[Image: tenttut-4a.png]

Page 2
Click the Copy Event Page button. Click the Paste Event Page button. Double click the event sprite box, you should see a setting inside that says Opacity. Change this to something below 255 (I used 128 in this example, as its right between 0 and 256.) You'll want to check the Always On Top box.

[Image: tenttut-4b.png]

That's it! Just copy and paste this event to make up that top row of tent tiles, and be sure to properly change the graphic on page 1 and 2 of all the events.

Step X 4 : 2nd and 3rd row of events.

The only change you're going to make to these events are on Page 2, please click the Through selection to ensure passage. I'm not going to screen shot that, but once you've gotten to this point...

[Image: tenttut-5.png]

...then all you have left is the...

Step 5 : Tent Entrance Event

Again, this is just a copy/paste of the previous tiles, but since it represents the entrance/exit of the tent it'll also act as the trigger to change the tent from opaque to translucent. Below are the changes we're making to the pages...

Page 1

We're setting the event trigger to Event Touch, because that is always running so long as the player is touching it. Inside the event, we're going to set a conditional branch checking if the player is pressing Up. (I used a conditional Script, but there is an actual thing for Button in the same conditional page 4. Don't ask me why I wrote out the script instead, it's just something I do lol.)

[Image: tenttut-6a.png]

Page 2

Page two is pretty much the same thing, but it has the conditional trigger of using the Inside Tent switch.

[Image: tinttut-6b.png]

Conclusion

...and that's it, we're done! Leave me a message if you enjoyed this tutorial or if you happen to see anything I might've missed. You've done everything correctly if you can do this while playing your game.

[Image: tenttut.png]

Feel free to use what you've learned from this tutorial and apply it to other things, I hope you enjoyed.
[Image: Button-BOTB.png]
[Image: Save-Point.gif][Image: Button-You-Tube2.png][Image: Button-Sound-Cloud2.png][Image: Button-Audio-Mack2.png]
[Image: LS-Banner.gif]
NEW ALBUM OUT NOW!

Reply }


Messages In This Thread
Evented Tent Interiors - by Kain Nobel - 03-22-2013, 06:22 AM
RE: Evented Tent Interiors - by MetalRenard - 03-22-2013, 03:59 PM



Users browsing this thread: 1 Guest(s)