CODE TEMPLATE Custom Player MENU and Scene CONTROLLER + DYNAMIC House Gameplay

Guides CODE TEMPLATE Custom Player MENU and Scene CONTROLLER + DYNAMIC House Gameplay

WARNING: due to this bug in the Timeline plugin, my original idea for the advanced scene doesn't work, i.e. the buttons next/prev for the animations don't work consistently. I've decided to release the advanced version of the script anyway because I believe it is a great tutorial (because of the comments) and a great starting point to make your own complex VaM scene script. Also all the other features like the light switches do work, so, yeah.

Free, WTFPL

~~~~~~~~~~~~~~~~~~~~~~~~~~~~
How scenes should be done
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Menu in VR
01-vr-1.jpg

Light options
02-vr-2.jpg

Code example
03-example-code.jpg

Menu in Desktop
04-main-menu.jpg

Menu icon and sun natural realistic light
05-sunlight-button-lightmenu.jpg

"Play" button to have sex on the sofa
06-play-button.jpg

Colored spheres for the creators to set where sex action happens
07-markers.jpg

Menu optionally detached in VR, draggable, and always in the foreground
08-detachable-menu-vr.jpg


Creating scenes is pain.
Creating the menu for your scenes is pain.
Using the scene menus as a player is horrible.
Working with MacGruber's LogicBricks is slow and repetitive (not to take away from his amazing work, unless you can code you should use his plugin, of course)
Creating dynamic scenes is impossible.

Coding could be a quicker solution but it isn't.

This template aims to be an attempt to bridge the gap between painful manual scene creation and difficult programming because of no VaM API and Unity/C# madness.

This template comes with two very similar C# scripts:
  • a simple one with only 1'000 lines of code (including comprehensive comments), with the menu only and two basic animations
  • an advanced one with more features

It is recommended to start with the simple script.

Both scripts can be easily understand even without prior experience of C# and Unity (general basic programming experience required), and come with two respective scenes fully integrated with the scripts.

The menu is opened via a new button in VaM's toolbar, and works both in desktop and in VR exactly like VaM's own menu. In VR, it can also be detached from VaM's HUD and positioned around in the scene.

The menu and its UI elements don't appear in the atom list, thus greatly simplifying the scene hierarchy. The menu contains the typical options that you see in most scenes (change animation, set animation speed, enter POV, etc), but everything is done via code in the simplest way possible and with code comments to explain what's going on. Thus the menu is easily customizable and all the examples that you might need are provided so you can have full control of your scene.

You can still use LogicBricks to do things that you are not able to do via code; one doesn't exclude the other.

Moreover, the advanced example scene shows how you can have the same animations in the different rooms of a house, thus it's a rather dynamic scene that's not restricted and strictly linked to a single environment.

Of course, you don't have to use the provided features. The code for room areas could be adapted to something else, for example sex toys.

PLEASE READ THE INCLUDED "readme.txt" FILE.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In hope that more scenes are going to be made like this.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thank you.

Features
  • VR menu integrated in VaM's HUD, that can be detached and placed around in the scene; easily create buttons for your scene working with a logical grid.
  • Male character on/off, male POV, female POV, action speed, previous/next animation.
  • Choose an area of the house e.g. sofa and have sex there; choose between alone/voyeur positions and couple positions.
  • The Timeline panel follows you around the scene for a comfier creation of animations.
  • Use light switches in your house and/or in the menu.
  • Choose between Day, Night, or Moonlight; easily add your own lights.
  • Creator page with various functions: toggle creator items, check scene status, reload the script, setup triggers for all the atoms in the scene with one click, so you don't have to do it manually: just match atom names with the names in the C# lists in the script.
  • Enough code examples that whatever you want to do, you should be able to do it using this script as a starting point / reference.
  • A readme file which takes you by the hand and helps you with scripting with VaM.

Dependencies for the example scenes
  • AcidBubbles.Embody.latest
  • AcidBubbles.Timeline.latest
  • MacGruber.Life.latest for "Gaze"
  • TacoCat.Hotel_Apartament.1
  • ToumeiHitsuji.DiviningRod.latest

Credits: adapted some code by JayJayWon, cotyounoyume, and MacGruber.
Author
SelakAR
Downloads
517
Views
3,797
Favorites
1
Version
1
First release
Last update
Rating
5.00 star(s) 1 ratings

Latest reviews

I've been considering scripting up some menus lately, and this seems like a great starting point. Thanks for sharing!
Upvote 0
Back
Top Bottom