Home Artists Posts Import Register
Join the new SimpleX Chat Group!

Content

Your First Spanking

Hey everyone! So last time we got our Ada character in and programmed out to perform an inspection of the apartment, then to grab the player and get ready to initiate a spanking. Today, we're gonna create that spanking!

Let's open up our Exit event (the one on top of the door) now and scroll all the way down to the last bit of code we wrote, which is Ada leading us over to our bed to cane us.

What the code should look like. What we're going to do next is create a Common Event command immediately after the movement. It will ask you for a number, let's leave it at #0001 for now. 

Now since spankings are usually a lot of code, it's nice to encapsulate them so that they don't clutter up the rest of our Exit event. Common Events allow us to do that. They act similarly to functions in traditional programming languages where they can be called from another piece of code (including another common event), run through, and return to where they were called when they finish. Once we've added that call, we need to make the code to be run, in this case, our caning. 

Hit OK to close out of the Exit event and open the Database, then click on the tab that says Common Events on the left.

Here's what that looks like. So since our call was pointing to the #0001 event, that's where we'll be coding. Give it a name first, something like "Intro Caning". Creating code in a common event works just the same as it does in any other event. Double click in the Contents field to begin creating your spanking. I'm going to be using the Fadeout and sounds method that I use in DOAS, but if you come up with something you think is better, I'd love to see it!

There's the entirety of the code I wrote for the caning event. Basically what this is is a Fadeout, lots of text, some sounds for the NPC pulling down the player's underwear (This caning event will only happen if the player didn't complete any of the chores, so they will always be in just their underwear. Normally we would create a check for male or female and have an extra sound for the shirt coming up/pants coming down.) more text, then our spanking sounds, and finally a Fadein.

It should be noted that this code does not take into account prior spankings, or the damage of the player's butt. That is material for a more advanced tutorial, since I just want to get you on your feet.

Let's test this now. Okay, so once the spanking is finished, you will see that Ada doesn't go anywhere after. Let's make her leave. In the Exit event, just below the call to the Common Event we just made, create a set of movement parameters to navigate Ada to the doorway.

The code I came up with. We do our movement of Ada, have her say a goodbye, turn off her image, move her into the wall, set Exit's A Self Switch to On, then play a sound for the door closing. At this point the player is released and may move around. Let's test it now.

It seems that our caning works! We can't go anywhere yet though because we don't have another map to transfer to. Let's create a simple one now.

Create a new map under the base map level "Spanking Tutorial" with the following parameters:

Click OK and drag the Your Apartment map on top of the one we just created. Now let's get to mapping.

There we go, there's our finished apartment stairwell. While we're here, let's go ahead and make this map transfer us into our apartment shall we?

Enter event mode and double click on the tile immediately to the left of the rug on the left side of the hall. Set it up as shown:

Some things to note, I set the Priority to Same as characters because this event is in an impassable tile, and I set the Trigger to Action Button because I prefer using the action button to open doors instead of running into them. Also, make sure you set the transfer point as the doorway of the Your Apartment map and the Direction as Up. Let's copy the Commands from this event now by pressing Ctrl+A and Ctrl+C. Hit okay and open up the Exit event of the Your Apartment map. On the second page, paste the commands. On the Transfer Player command, make sure to set the destination and direction to on top of the left doormat in the map we just created and right respectively.

Now let's make a check to see if the player is dressed before they leave. Make a Conditional Branch at the top of the Contents section to check if the Morning Routine Done switch is ON with create else checked. Select the code we pasted by clicking on the first line, holding Shift, then clicking on the last line. Cut it and paste it into the top section of the Conditional Branch. In the bottom, create some text that tell the player that they're still undressed, then move them up.

Here is mine. Let's test things again. Everything work? Good. So this is where this tutorial series comes to an end. You should now be fully capable of making a simple spanking game! But, careful readers will note that we've created conditions for a different action depending on how many infractions the player has committed.

Guess what your final exam is? Filling out that section with 2 other spankings of course! I will fill in what I think they should be in the tutorial project upload, but I want to see yours as well! Remember that we created that chair that can be turned around? Maybe an OTK spanking on that?

Some other things you could do as extra credit is make something happen to the player if they leave after the caning without cleaning up, mapping out the rest of the apartment, or even making Ada's office and creating another scene with her! The possibilities really are endless at this point, so have fun!

Oh also, here is a link to some more Sci-fi suitable doors for your project so the front door of the apartment doesn't look like it belongs in a castle:

Sci-Fi Doors Pack 

I hope you guys enjoyed this tutorial series! I've created a funding goal for more advanced tutorials, so hopefully we'll reach that later on. See you next week with regularly scheduled DOAS updates!

Project Download 

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

Files

Comments

Anonymous

Thanks for the tutorial, picked up a few pointers, and discovered I was doing some things in less than the most efficient way.