Hi Guys,
I seem to have a mistake in my actions. I want to check the global variable "gloria" that when its typed in and is correct, a hotspot appears. However, the hotspot always appears, so it's not really checking. Can you spot the error?
Cheers!
https://ibb.co/fXM7cVK
https://ibb.co/dDByLHc
https://ibb.co/jRkfMkg
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Your Hotspot will need to be disabled by default, or disabled by another Action - is this the case? To disable it by default, attach a Remember Hotspot component to it, and set its "Hotspot state on start" to "Off".
Your ActionList also enables the Hotspot if the variable's value is equal to "Gloria", which it is by default. Check the variable's value at the time this is run. You can do this by checking "Show realtime values?" in the Variables Manager and viewing it at runtime.
Hey, yes it is disabled on start
I understand that it just enables the hotspot because it is "gloria" by default, however what it should do is
Take the input from the input field and compare it to the global gloria variable -> if same, enable hotspot
I have followed this tutotial https://adventurecreator.org/tutorials/letting-player-enter-their-name and tried to well do what you see above
So just using "entered value" obviously was not it, I thought thi smight take the value from the menu "password"
Edit: Moving everything from the hotspot actions to the action list was the trick I now found ouot
I don't see it in your ActionList, but you will need to run a Variable: Set Action with Set As Menu Element Text to transfer the input box's value to the variable before you can check it.
See the tutorial about halfway down for screens on how to set this Action up.