🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Conquering Ciros Week 2: Explosive-Summoning Synergy

Published January 22, 2024
Advertisement

This Week's Work:

This week was focused on another synergy: Explosive-Summoning, which drops a mine whenever a summoning crystal hits an enemy.

Fortunately, a lot of the structure is already in the game. Last week we implemented another on-hit synergy, so that activation is already working. Additionally, I implemented the Mine Dropper Crystal ability, which does essentially what we want the synergy to do. This means that I already created a prefab with necessary animations, collision, etc.

The prefab from the Mine Dropper, repurposed for the synergy.

I did have to create a new script for the synergy mine, since the Mine Dropper mine would activate the synergy, and if the synergy mine did that, it would just keep spawning mines forever. I just took the essentials from the original script to make the new one. Here's the gist of it:

I also did some tweaks like adding a cooldown to the spawning function, and changed the color of the synergy mine so that it was distinguishable from the original Mine Dropper mine (just in case you have both).

Last Week's Work Updated:

After getting a basic version of the laser complete, I met with our team's artist, and she recommending using the laser texture that already existed on the Laser crystal. Luckily, I used a line renderer to implement this originally, so I was able to use the material from the laser crystal and just add it into the line renderer. It now looks like this:

Laser synergy using tiled laser texture

I did run into issues with the texture tiling, because even though the line renderer was set to tile, only one instance would show up. Apparently this is because imported textures default to a wrap mode of “Clamp”, which prevents repeating/tiling. All I had to do was change it to “Repeat” and re-import the texture.

0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement