I want to build a catch game.
A person is running on a track and you have to click this person 3 times. After that the person stops and says something.
At the moment the person does not stop and is not able to say something. Can somebody help?
In your set variable block, the value is a text string datatype by default (“3”, not 3). This often causes problems because if you use a change block the datatype is a number (0, not “0”).
The solution is to drag a number value block into the value field of your Richtig variable:
Click on the debug code icon in the top right corner, whilst playing your space. This will help you see which parts of your code are running and which aren’t.
From here you may be able to see what needs to be changed to get the result you want.
That’s correct - the move on path doesn’t stop, because it’s in a forever loop. It needs the break out of loop CoBlock to stop. Can you set a condition inside the loop that will break out when you want it to?
You need to put in a condition in there, so the break out of loop is actioned only when you want it to be actioned, ie, when do you want it to stop moving on the path?