duongvituan/godot-action-animation-framework

GDActionNodeWait uses global RNG instead of local RNG

Closed this issue · 2 comments

In the file GDActionNodeWait.gd, randomize() and rand_range() is called which use the global RNG of godot. I'm not sure if this node is instantiated everytime a wait is called, but if it is, then the global RNG will get reseeded each time which interferes with the main application making use of global RNG properly.

I agree with you, func randomize() should be called from the main app.

I think it can be fixed like this: link
Do you have any suggestions? cc @nstryder n