Hi! I’m trying to find a co-block wherein the game will choose which path the angel will take. I have already created two paths, I just need to find a co-block that can randomize which path the angel will follow.
I’m doing this so the player won’t know which direction the angel is coming from.
set variable to random number between 1 and 2
if variable = run a code
else = run other code
Hi Alessio! The code still doesn’t work :(. Am I supposed to put something in the number 1?
I also noticed when changing the sign, the path’s change. Greater than sign makes the angel follow the first path (the path going to the right) while less than sign makes the angel follow the second path (the path going forward). Equal sign just makes the angel follow the second path. Maybe there’s a way or code to switch the signs when pressing play?
Thank you for your help by the way!
put it to = 1 and it will work.
Hello! It still doesn’t work :(. The angel still follows the second path.
can you show me the full code?
Shouldn’t it be “random integer” instead of “random number”? Otherwise you can get 0.1, 0.2 etc. and never get just “1” so it will never take the first path.
Oh! It works now… Thank you so much!
(I wish I could give both of you “solution” :'(. I’m so sorry )
thank you for clirify the situation