I am trying to make it so the enemy changes state to passive if the player leaves the rnage of the enemy
I have these for the decorator and the function it calls, as well as where the decorator is
I am trying to make it so the enemy changes state to passive if the player leaves the rnage of the enemy
I have these for the decorator and the function it calls, as well as where the decorator is
Try modify BTD’s observer aborts.
I tried that just now and nothing
maybe im not doing it right? i followed a tutorial but they never went through that and aborting and changing states is still new to me
Please link that and tell me if it works:
so i tried it a bit different qand got closer
i added this decorator to the combat state start but my issue is it only works befiore entering the state, it dosent change it when the enemy is in the state and leaves the range
If you need something checked regularly/constantly use services instead of decorators.