In the bats are moving down section, it checks in a random range from one to 4, if the
random number is 3 it changes the bat mode text variable, and then the bat should move down.
I couldn’t find any problem with it. Do you see anything?
I can see a problem with the event before the bat moving down section. When you create the bat_move , you aren’t setting the Random_Move_1 value. So chances are it is set to the default value of 0:
Because you are setting the random_num_1 to 1 after the create, but checking if it’s 3 before moving the Bat_Move object. So it will never happen.
BTW, are you checking the value of Random_Num_1 twice? And and why set Bat_Mode to “Move_Down” in one event, and then check if Bat_Mode is “Move_Down” in the child event?
It seems the game now works. But I am not sure.
I want based on a random number the Random_Num_1 variable moves down.
This variable initializes with the number 5.