Event dispactchers calling two events instead of just it's assigned event.

Hi, I’m using event dispatchers to handle the score logic for my game and have a score up and score down event, but if I call score up, both score up and score down get called, and if I call score down, neither do(I tested this by substituting score up for score down and triggering it in collect asteroids.)


Does anyone have any solutions, I can’t seem to find one online elsewhere

you could just use one dispatcher and pass through an int for score ie (1 or -1)

your widget you should be binding to the event on something else, not self. ie maybe the score is on the GameState and the widget binds to the gamestate event.

Looks like you bound the same thing twice.

1 Like

It’s always the stupid things… Thanks!