Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » Variable Menu
- Azulina11
- Scratcher
23 posts
Variable Menu
I'm doing a game with some screens, and in each is given number of sprites. I did created a variable “menu”, and I do the following code:
The code is in three botton: “Português”, “English” and “Español”.
The problem is that only the bottons of language english and spanish are working. The botton portuguese are not hiding. I already tried to arrange, but the botton english don't hide.
I already did a project with this code, with more sprites to hide and show, but in this game, only two bottons can carry out the code.
What is happening with my game?
This project: http://scratch.mit.edu/projects/24390431/
My browser / operating system: Windows 7, Chrome 34.0.1847.131, Flash 14.0 (release 0)
when green flag clicked
forever
if <(menu) = [0]> then
show
end
if <not <(menu) = [0]>> then
hide
end
end
The code is in three botton: “Português”, “English” and “Español”.
The problem is that only the bottons of language english and spanish are working. The botton portuguese are not hiding. I already tried to arrange, but the botton english don't hide.
I already did a project with this code, with more sprites to hide and show, but in this game, only two bottons can carry out the code.
What is happening with my game?
This project: http://scratch.mit.edu/projects/24390431/
My browser / operating system: Windows 7, Chrome 34.0.1847.131, Flash 14.0 (release 0)
- Azulina11
- Scratcher
23 posts
Variable Menu
Done!
http://scratch.mit.edu/projects/24390431/
Edit: I deleted the code and redid. Now the code's ok. But I noticed that my third code disappears when I copy the code of other sprite, even when this game is saved.
http://scratch.mit.edu/projects/24390431/
Edit: I deleted the code and redid. Now the code's ok. But I noticed that my third code disappears when I copy the code of other sprite, even when this game is saved.
Last edited by Azulina11 (July 7, 2014 16:10:05)
- Discussion Forums
- » Bugs and Glitches
- » Variable Menu