Game
Hensen Hopper
2 months 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'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!

I DID end up making the body and elytra both 1 cycle/s and the wings 6 cycles/s. I'm working on a video of the animation itself playing in the Unity editor so you guys can see it properly. I think it turned out well!

I added an animation and sound effect when the player collects the heal-up drop. In the lore, this flower is going to be Hensen's favorite food which is why the sound effect is a crunch like he's bitten into something.

We've updated the trending section of the Game Jolt Shop! http://gamejolt.com/#shop

Snag a new avatar frame and a sticker pack or two!

Remember, every purchase supports our creators and our community!

Support creators, shop on Game Jolt! #broadcast

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.

We have a question and we wanna know: What's the coolest easter egg you've ever seen in a game? Complete the quest and you'll get 100 Coins!

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.

Finally working on the sprite for the beetle enemy!!! I need to get off my computer and do some stuff right now but I thought the idea of posting a headless (I haven't done the head yet) beetle screenshot was hilarious so I'm doing that first lmao.

This week's Fan Art Friday celebrates #CronosNewDawn

Accept the quest in your quest log to get started.

GJ Pro-Tip: Not sure what to make? Check out the game's Steam page for inspo: https://bit.ly/cronos-steam

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.