XaiJu
godspeak
godspeak

patreon


Godspeak's Spanking Game Tutorial #2

Interior Mapping & Basic Eventing

Welcome back to my tutorial series on creating spanking games! Today, we will be going over how to create our first map, and how to give the player some simple stuff to do in it. Let's go ahead and open up our project from last time.

Here's what you should be seeing. If it isn't, go ahead and navigate to the map we titled Initialization last time. The first thing we're going to be doing today is our interior mapping, because if you recall, once the player has gotten past all of the introductory stuff of our game, they get transferred to an empty room. 

Let's open that empty room now. Click on the map in the map browser titled Your Apartment.

This texture that's covering the entirety of our map is transparency. If you're familiar with photoshop or any paint program really, you should know what that is. In this context however, this will show up in game as black screen. Let's go ahead and change that.

Select the circled tile and draw out the shape I have illustrated here. This will be what I call our Top Wall section. These tiles illustrate where the boundaries of our rooms are. 

But what if we don't like these boundaries? Simple, right click and drag a box around whatever you wish to copy, now you can use whatever you just copied as a brush! Let's use this to bring one of the walls in the top right corner of our room down a bit to break up the boxy-ness.

Here's what I ended up with. I also went ahead and selected our wall tile for the next step. It's directly underneath the tile we used first.

Add in your wall tiles like so, and hey, we're starting to approach something that looks like a home! But, it's one big space, so our next step is to partition off areas to become different rooms in the apartment.

Here's the layout I created. When partitioning rooms like this, it helps to imagine what each one will become where you're finished. In this example, the bedroom is the upper left room, living room is upper right, bathroom is lower left, and kitchen/dining/entry is the lower right space. 

With that in mind, let's fill in our floors.

And done. The tile in the bedroom is a carpet from the top of the tilesheet. 

Also, take note of how small the map and these rooms are. The biggest mistake I see people, even the creators of the engine make, is designing huge, cavernous rooms with very sparse amounts of objects in them. This does NOT look good. Avoid doing it.

All I've done here is fill in the empty spot in the top corner of the map with the black tile I've circled. It's not necessary to do this, but I feel that it's easier to visualize what you're doing. Let's place some windows now.

For placing objects like windows that take up more than one tile, you can draw a box around them in the tile picker to create a brush. That way, you can minimize multiple clicks. 

Note, I have placed windows on the back wall only. Normally, I would place them on the front wall of the map as well, but since this is an apartment, the windows would be looking into the hall! 

Let's add some furniture!

So that's one pass of detail done for the furniture, let's do a second one. For this, I usually try to put items on tables or on walls.

Okay, I think we're done with this map! Aside from placing objects on a lot of surfaces and walls, I added a carpet to the entry area. Now let's make some stuff for the player to do here. How about some chores? The first chore I'm going to do is a morning routine, because who wakes up ready to leave the house anyway? 

For this one, I want an indication that the player needs to take care of something, so I'm going to make the player character start the game off wearing only underwear. Let's open up the character generator to do that now.

First, click load settings, select one of the templates we made last time, I'm starting with the female one. Next, go to the Clothing section on the left, and navigate to the top to select the empty one. This will change your character to what you see above. Let's save the face image now.

Click import and select the file we named PCFemale01.png last time.

Click open. It shouldn't look any different at the moment, but click next to the portrait of our underwear clad character.

This is what you'll have now. Click Export and save over the existing face set for this character, in this case it's PCFemale01.png. 

There we go, we've just created a two-image face set! Let's do the same for the walk character.

Click Export and save over our existing file for this character just like before. Repeat this entire process for the other gender of our player character. 

Now that we have an underwear clad version of our character, let's make it so that the game starts with them like this. First, open up the Database and make sure the Actors tab is selected.

Set up the Face and Character sections like so. Now, open the map titled Initialization and open the event we made last time called Initializer.

Edit the Face and Character sections in the Change Actor Images command under the When Boy branch to look like this. While we're here, let's edit the Transfer Player command as well to reflect our new map's layout.

Open it up and select some place next to the bed. This will make it seem as if the player has just woken up. At this point, let's go ahead and test our game. The player should be asked all of the questions we specified last time, then appear next to their bed in their underwear. 

Let's get started on that morning routine chore now. Head back to our apartment map, and double click on the space right at the entry of the bathroom to create a new event. If this doesn't work, check to make sure you are in eventing mode.

Set your new event to Trigger on Player Touch and name it Morning Routine.

Let's add a confirmation like so. It's good form to always ask a player if they want to do something that's going to take over control of the game. The only time where you should not do this is in cases where there's no way the player could think this was going to do anything else and the consequences of doing so are negligible, such as entering a house. Another good rule is that if it becomes tedious to be asked the same question at any point, you shouldn't ask it.

Now, since this event is on touch, we're going to want to move the player off of it if they select No. Create a new Set Movement Route command under the No section of our choice.

Set it up like this. Make sure that the movement is moving the character out of the room instead of into it, or they will be stuck!

Now, under the Yes section, let's add a few things:

This is what you should have. Now, we want to change the player's image to the clothed version, but we need to make sure it's the correct version for the gender. This is where our Gender variable from last time will come in handy.

Add in a Conditional Branch command under the Flow Control section and select the Variable radio button. Make sure Create Else Branch is checked at the bottom and click OK. Do not edit anything else. 

So, according to the events we made last time, Gender = 0 corresponds to male, and the Else corresponds to female, so let's add in our Change Actor Images commands appropriately. Make sure you select the clothed Face and Character for each. 

Next, we need to make sure that this event doesn't fire more than once for right now. After the Conditional Branch command add in a Control Switches command. Click the three dots next to the 0001 and enter "Morning Routine Done" into the name field. Click OK and OK again.

Lastly, stick a Fadein Screen command just after the Control Switches command.

Here's what your event will look like now. But, if we were to test this, we would find that upon trying to exit the bathroom, we will be asked if we want to get ready again.

Let's add a New Event Page and under the Conditions, check Switch. This page of the event will now run once the Morning Routine Done switch we created earlier has been set to on. Since there is nothing in the Contents, the event will not activate at all. Make sure the Trigger is set to Action Button.

There's what it will look like. Now, click OK and test your game. Everything work? Good. That's all I have time for this week, but check back in next time when we go over some more complicated events for the rest of our chores.

Seeya!

Project Download 

This post was made possible by all of my generous (and attractive) patrons!

Godspeak's Spanking Game Tutorial #2

More Creators