Tag Archives: flashlight

Basic Inventory System (Flashlight)

Basic inventory/container system

I made a few minor adjustments to the HUD here, but nothing is functional yet; it wasn’t my main focus.

I made a custom skin (still a very much a WIP) for Game Creator’s Inventory system (had not made one for “containers” as of yet) and managed to get the flashlight object I had made as a working equippable. This was actually quite a complicated little thing to do.
The flashlight I created was saved as a prefab, and was not yet instantiated into the game at the beginning. Once you equip the flashlight, it instantiates the flashlight prefab as a child of the player object (so it will move with the player). This took some really specific placement modifications too for the instantiated object to be facing the right direction, especially when the player was facing a direction other than toward the camera. When they weren’t, the flashlight would instantiate at a weird rotation, so it wouldn’t necessarily be in front of the player. I remedied this by zeroing out the Flashlight prefabs rotations to 0, and putting the actions in this order:

  • 1. Instantiate the Flashlight and store it in a Global Variable (“EquippedFlashlight”)
  • 2. Change Parent of Global Variable “EquippedFlashlight” to Global Variable “CurrentPlayer”
  • 3. Change Position (aka Move) of Global Variable “EquippedFlashlight” to [my specified coordinates for X,Y, and Z; these coordinates will change in the future when I have actual sprites but for now the tweaks to this position make it look like it’s in their right hand)

So, for now at least, the basic Flashlight functions were taken care of. As I noted above, this situation will more than likely change when I start using actual sprites, but for testing, it’s all good!

You’ll also see that I added organization tabs for the inventory at the top of the menu (which will also be changed in the future, but practice practice practice).

Also in the future, the Flashlight will be a left-handed item, as left-hand items will be supporting items and right-hand will be weapons. This will play a part in the mechanics, and makes the sprites a little more fluid and “realistic” (usually you can “mirror” sprites but that swaps things around and makes the imagery inconsistent, so I’m making sure to keep things organized).

This video was recorded on December 26, 2020.

Road to Motel Basics

The HUD featured here was a placeholder only; non-functional. The flashlight implemented in this also had no inventory mechanic whatsoever, rather it was just a lighting effect place onto the character that could be switched on and off. An inventory system had yet to be created. You can see how jittery it is, as it’s moving purely with the characters movement; you can’t move it independently. I changed this in the future!

The dialogue (also called”barks”, which are essentially character shouts) were created using the Game Creator “floating messages” system, which I gave my own custom skin to make them appear as comic-style speech bubbles to tie in with the games eventual graphics style. In this scene, they appear when the player reaches an area boundary, and will be utilized much more in the future.

The floating text was left over from my practice getting text to always face the camera, and appear when the player was near enough to it. In the same vein, the arrow on the ground was made and animated by me for practice and study. Neither will be used in any final version.

The loading screen used here was via a custom script I did a lot of research on (actually a group of 3 scripts), which has a moving status bar displaying a percentage while it loads/unloads the scenes it’s told to.

This is not visible in the video, but “under the hood”, I will note that this is far before I got the actual Game Creator movement script working with SpriteMan3D. I am actually using the custom simple character controller here that came with the SpriteMan3D asset. It is very simple, only walk and run animations (run being triggered by holding the Left Shift key, standard movement being WSAD). The flashlight button was “F” and simply turned the flashlight geometry to active or inactive.

This video was recorded Dec 11, 2020