Evented Tent Interiors - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Games Development (https://www.save-point.org/forum-4.html) +--- Forum: Tutorials (https://www.save-point.org/forum-19.html) +--- Thread: Evented Tent Interiors (/thread-4591.html) |
Evented Tent Interiors - Kain Nobel - 03-22-2013 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. 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. Looks good champ! Next, we're going to have to hollow it out... 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. 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. 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. 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... ...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.) Page 2 Page two is pretty much the same thing, but it has the conditional trigger of using the Inside Tent switch. 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. Feel free to use what you've learned from this tutorial and apply it to other things, I hope you enjoyed. RE: Evented Tent Interiors - MetalRenard - 03-22-2013 Cool idea, well executed. You must be proud your son is getting into this kind of thing too. |