Game
Hensen Hopper
1 month ago

Okay so I've now gotten a much better spawning script put together! To fix the bullet firing effects, I've written an accessor that returns true if something has spawned since the last accessor call, it's a cheap solution, but it works, at least for now!


image.png

Above is the script I've replaced the old PrefabSpawner script with, if anyone's curious. It's a pretty simple script containing two methods:

  1. Spawn(GameObject gameObject) does exactly what it's name implies, instantiates (spawns) a copy of whichever game object is passed into the gameObject argument (everywhere I've used it uses prefab objects in my project directory but it's theoretically possible to use existing objects in the scene I now realize!) at the position and rotation of the spawner. If you read the method in the screenshot, you'll probably see it also sets the private boolean member spawnFlag, which is used for the second method, to true.

  2. GetHasSpawned effectively returns true if the spawner has spawned a game object since the last call to GetHasSpawned. How it does so is fairly self-explanatory if you read the method above. This exists solely to be read by the script handling the bullet firing animations and SFX which triggers both of those when the bullet spawners attached to the player and enemies spawn bullets by checking GetHasSpawned's return value once per frame update.

The original PrefabSpawner script I had would spawn a predefined prefab when triggered to, and this worked just fine for the bullets (which use the same spawning script as the enemy columns) however, it became counterproductive when I began trying to implement the upcoming beetle enemy. The versatility of this new spawner will make implementing new enemies and furthermore new ammo types (which is something I have planned for the future as well O.O) a lot easier and more intuitive.



0 comments

Loading...

Next up

I drew a concept sketch of the beetle enemy based on a real-world species called the grapevine beetle. This enemy will NOT fire bullets at the player but instead moves back and forth in front of other enemies blocking your bullets from hitting them.

OKAY, here's it ACTUALLY finished! Quite happy with how this turned out, actually! I've drawn this sprite in 3 layers, the wings, the elytra, and the body, which will make animating this thing a lot easier when I get onto doing that.

It's kinda incredible how much simply changing the text font(s) will, by itself, complete the aesthetic of a game, especially in the menus.

I love TextMesh Pro so much!

This week's Fan Art Friday celebrates Baldi's Basics in Education and Learning! Accept the quest in your quest log to get started.

Working on getting the itch page for Hensen Hopper set up which means creating a separate cover image for the game on itch (different aspect ratio there). I want to publish that with first beta build of the game so I DO need to get a move on with it.

Inayah - Life After Gods is OUT NOW on Steam!

Celebrate the game's release by completing our quests!

You can play the demo or get the full game at https://bit.ly/steaminayah

I don't know how well you can see it in this video, but I've coded a dashing mechanic for Hensen Hopper! I plan to have dashing consume a "dash charge," a kind of ammo you can get as you play in the form of enemy drops.

The new heal-up drop in Hensen Hopper. May not be a cameo of something in one of my earlier games like I may or may not have directly stated I was going to make it in a post I made the other day.

@FatBombStudios is a CCC+ Studio that makes games you love but don't know about!

They're the devs behind the fast paced hide and seek game Light Bearers 2: https://bit.ly/LightBearers2

We think you SHOULD know about them so complete the quest!

I've gotten the defeat animation for the enemies in this game working! Next thing I need is a good sound to complete the effect. I quite like this animation as-is but I'll probably tweak it post-beta. The first beta should be out by new years day!