#How to make a pyromancer type tower in my TD game with client rendering

1 messages · Page 1 of 1 (latest)

glacial pebble
#

I've done a few tower defense games in my time, as well as a fully client rendered one. Do you have any physical things displayed as a mob on server?(folder, part, etc)

#

I was hoping you'd say that, that's how i did mine as well lol. For a pyro type you'll just need a few attributes set on the enemy. OnFire : Boolean, FireDuration : Number, FireDamage : Number. Check when the duration is greater than 0 with an attribute changed signal, and run a function that decreases it and lowers mob health over that duration(for loop, repeat until loop)

#

Tower would just be setting the fire duration and damage

#

for spread you can do a magnitude check between it's current target(your splash/pierce radius here). If it checks out, set the secondary enemy on fire

#

I never did jump into raycasting tho myself for damaging enemies(even tho its more realistic), so i do not know much on that topic