Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Bug when deleting items from list - driving me crazy
- Weaniewotsit
- New to Scratch
2 posts
Bug when deleting items from list - driving me crazy
Hi all
I've been trying to figure out the bug in my project for days now but I'm going round in circles so could do with some expert help.
I've created a game for my 2 year old where she needs to click a numbered penguin based on which number the mummy penguin shouts out. So the game starts with a list of 1-5 and when the correct number sprite has been clicked it should delete from the list. I had this successfully working when I had 3 sprites but now I've added a further 2 it fails on most runs - it doesn't always delete 4 or 5 from the list. Other times it does delete 4 and 5 and the game completes successfully but I can't see an obvious pattern for this.
I guess I'm missing something really obvious but it's beyond me. Help!
http://scratch.mit.edu/projects/21163242/
Thanks
Weaniewotsit x
I've been trying to figure out the bug in my project for days now but I'm going round in circles so could do with some expert help.
I've created a game for my 2 year old where she needs to click a numbered penguin based on which number the mummy penguin shouts out. So the game starts with a list of 1-5 and when the correct number sprite has been clicked it should delete from the list. I had this successfully working when I had 3 sprites but now I've added a further 2 it fails on most runs - it doesn't always delete 4 or 5 from the list. Other times it does delete 4 and 5 and the game completes successfully but I can't see an obvious pattern for this.
I guess I'm missing something really obvious but it's beyond me. Help!
http://scratch.mit.edu/projects/21163242/
Thanks
Weaniewotsit x
- Weaniewotsit
- New to Scratch
2 posts
Bug when deleting items from list - driving me crazy
Wow, thanks so much, you're a star.
So that I know for the future, what was the issue? Was it because I was trying to use the same variable to delete from list at the same time as deal with the other sprites? Should I always keep the list variables separate?
Thanks
Ww
So that I know for the future, what was the issue? Was it because I was trying to use the same variable to delete from list at the same time as deal with the other sprites? Should I always keep the list variables separate?
Thanks
Ww
- Discussion Forums
- » Help with Scripts
- » Bug when deleting items from list - driving me crazy