Hide and seek Game

I’m trying to make a hide-and-seek game, I want the player to be able to agree to the game through a widget. I’m struggling to make the boolean work, the comments in red are where i think the code is wrong. I haven’t coded the hide-and-seek part yet.

The hide and seek chara


Here I have it so that when the player walks to the chara the widget will show up and the player will click on it to agree.

The widget code


Then here is where am trying to set up the boolean so that it can see if the player has agreed.

I’m trying to make a hide-and-seek game, I want the player to be able to agree to the game through a widget. I’m struggling to make the boolean work,

You’re not checking the boolean after the button has been pressed. Honestly, you do not need a boolean at all:

Player presses the button, we play…


The boolean can be added to a dispatcher, but seeing how you actually remove the widget, why bother. As soon as you Remove the widget, it’s all gone anyway.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.