Swipe Action

Swipe Action The Swipe Action system has been designed around the Android platform, to allow for swipe direction determination. Swipe DirectionsUp, Up Right, Right, Down Right, Down, Down Left, Left, Up Left, Single Point and Undefined are the different detected directions. With this, you can manipulate your game world to react to the different swiping directions, the swiping is visualized with a trail renderer. These different manipulations can be applied within the provided PlayerController.cs class object. This class object in general, contains all the code relating to the specific MainPlayer functionality, that the script is attached to. Continue reading

Dialog Controller

Dialog ControllerThe Dialog Controller has been designed to display dialog popups filled with textual data at the locations where a particular dialog is taking place.

Data is read in from text files within the Resources directory within the Unity project folder. The text files are sorted and separated based off the name of the desired game object given within it’s own script behavior. Also, within it’s own script behavior, this is where its initial dialog state is set, this determines the initial read in dialog. Resources InformationAs seen within this image, this shows how what I call the NPC (Non-Player Character) game objects dialog data is sorted to be picked when needed for the read in NPC’s particular dialog state.

This data is picked based off the attached Dialog Controller script attached to the NPC. The Resource Data Location is used to determine where the text files are located within the Resources folder. Also, and importantly, the Initial Dialog State locates the initial dialog text within the text files, I will explain this more in depth later on. Dialog Game Object InfoThe next image shows the inputs I gave the NPC Behavior script and Dialog Controller script based off my example for the individual NPC objects. Within my scene initializing script I dynamically create and change the Name attribute within the NPC Behavior script. Continue reading

Game Bar Creation System

Game Bar CreationIn the Game Bar Creation System you’re able to simplistically create and utilize any type of bar needed for visual incrementation, such as a health bar, mana bar or experience bar, etc. By default, you can either use a Globe Bar or a Rectangular Bar style in which this will be how the bar will increment.

The main class that ties the Bar functionality together is the: ScrollBarEssentials. This class when derived from will allow you to create any desired bar. This comes with example and base systems to help show you how to create and use this system. A HealthSystem, ManaSystem, ExperienceSystem are included, as well as a GlobeBarSystem to show you how the system can be harnessed.
Continue reading

Tooltip System

Tooltip SystemStaff of Light Example TooltipThe Tooltip System is designed such that a visual GUI will be drawn onto the screen when the mouse is hovering over a specific Icon element or an in world Transform object.

The Icon element is provided with the package, it’s purpose is to allow your Tooltips a reference of where to locate the proper data based on the type and name of that Icon. IconTypes EnumIcons are categorized based off three different types: Item, Skill and GameObject, each type is associated with it’s own text file. Different types and file paths can be added and changed easily, but by default these are the initial settings.
Continue reading

Dungeon Crawler / RTS Controller

DC/RTS ControllerThe DC/RTS Controller is designed to act as either a Dungeon Crawler or RTS System, meaning that the way the camera acts is in a bird’s eye, top down view. Such that in a Dungeon Crawler there is usually only one active controllable object, but in an RTS you usually have many controllable objects.

The present features of the camera allow you to move it around in various ways. Such as, with the W, A, S, and D keys you can move it’s location forward, left, backward or right. With the Q, and E keys the camera’s rotation will pivot around counter-clockwise or clockwise, zooming in and out with the mouse wheel is also supported. A toggle key: Space Bar by default has also been implemented to allow for activation of the camera to move toward a selected controllable object if it isn’t near it, as well as make the camera follow that object. Continue reading