|
Post by najsen on Mar 31, 2017 7:53:48 GMT
First off, thanks a lot for the tutorial! I've learned a lot and have added a load of new features and tweaked stuff. One thing I'm having trouble with is figuring out the best way to make auras (e.g. every unit within x tiles receives a status effect). This should be constant, like a passive ability of the source unit. I can't think of a good way to update each unit's status as the source unit, or other units affected by the aura move around. Has anyone got any thoughts on it?
|
|
|
Post by Admin on Apr 3, 2017 15:57:45 GMT
Good question. This reminds me of FireEmblem Heroes on mobile - recently started playing that. In that case it has an "obvious" moment to apply the aura because you get to move all your units at the same time when it is your turn, so it can apply it easily at the beginning of a phase.
For the Tactics RPG project I think you would need to have another system that checked for each aura modifier every time any unit moves, because other units can move into and out of the aura range, as well as the unit possessing the aura moving. It may depend on your own set of rules for how the aura should work too. Like if you get extra defense by being next to a unit, then move to attack a unit outside the aura's range, do you keep the effect until your next turn or does it need to check for the aura bonus at the time of attack? Lots to think about with this sort of system.
|
|
|
Post by najsen on Apr 5, 2017 12:10:04 GMT
A reply from the master himself! Yeah, I think that's a good approach. I think the auras will need to be updated any time a unit moves, not just at the beginning of each turn. I am dispatching notifications when units move already because I use it to add/remove tile status effects. I'll trying implementing an aura system alongside that. Cheers!
|
|