Heya, so I need some help with coding. In my game, theres a puzzle, where the player inserts a 3 digit code into a box. if the inputted number is an even number (a multiple of 2), the middle of the 3 creatures will change graphics (from a blue thing to a sheep). View attachment 365848 the logic for my code is: player inserts 3 digit number. A different "middleman" variable is set to this number. The middleman variable is Mod by 2, which should either produce the number 1...
Heya, so I need some help with coding. In my game, theres a puzzle, where the player inserts a 3 digit code into a box. if the inputted number is an even number (a multiple of 2), the middle of the 3 creatures will change graphics (from a blue thing to a sheep).
View attachment 365848
the logic for my code is: player inserts 3 digit number. A different "middleman" variable is set to this number. The middleman variable is Mod by 2, which should either produce the number 1 (if the inputted number was odd) or 0 (if it was even).
However, when I run the code, I could type any number, and the creature turns into a sheep. also, once its set to the sheep graphic, i cant turn it back. idk where im messing up T_T
TLDR: I want to write a code where, if a player inserts a number that is a multiple of 2, it will switch to the sheep graphic, & if they type an odd number, it changes/stays as the blue thing