derkork / godot-statecharts

A state charts extension for Godot 4
MIT License
679 stars 33 forks source link

Random value option for delay_seconds #121

Closed alextkd2003 closed 1 month ago

alextkd2003 commented 1 month ago

Useful to get random behaviors in multiples instances of the same object

derkork commented 1 month ago

How about we make the delay an expression rather than just a number? Then we don't need an additional field and gain a lot more flexibility in how the delay is set. You could then even grab the delay from an expression property. Since it is an expression it should still be backwards compatible. E.g.:

image image image

alextkd2003 commented 1 month ago

@derkork that's looks really clean. A lot better for sure.