Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Some issues I can't solve
- 1234abcdcba4321
-
Scratcher
1000+ posts
Some issues I can't solve
https://scratch.mit.edu/projects/126332810/#player
My first problem is that, despite switching the costume, it still stamps costume3 instead of costume4.
My other one is that, if you place pieces in the pattern 1-2-2-1 in any of the 8 directions (only when a 1 is placed last) two 2s are supposed to appear on the side. They don't/
My first problem is that, despite switching the costume, it still stamps costume3 instead of costume4.
My other one is that, if you place pieces in the pattern 1-2-2-1 in any of the 8 directions (only when a 1 is placed last) two 2s are supposed to appear on the side. They don't/
- deck26
-
Scratcher
1000+ posts
Some issues I can't solve
You don't need to show, stamp, hide - you can just stamp.
Not sure what we're supposed to expect to happen. What you seem to have at the moment is a forever loop which toggles between costume3 and costume4.
Not sure what we're supposed to expect to happen. What you seem to have at the moment is a forever loop which toggles between costume3 and costume4.
- 1234abcdcba4321
-
Scratcher
1000+ posts
Some issues I can't solve
You don't need to show, stamp, hide - you can just stamp.It's supposed to switch between costume3 and costume4 every click, but it only uses costume3 in the stamp (but the game tracker actually works fine, it's just the stamps)
Not sure what we're supposed to expect to happen. What you seem to have at the moment is a forever loop which toggles between costume3 and costume4.
Last edited by 1234abcdcba4321 (Oct. 19, 2016 21:02:05)
- deck26
-
Scratcher
1000+ posts
Some issues I can't solve
I don't really understand what you're trying to do but a standard debugging technique is to simplify and reduce. If one script does something and then broadcasts to a another try breaking that chain so you can check that the first script has done what it should. Try getting rid of scripts and sprites that are not necessary at this stage, working with a copy of the project if that helps.
That way you should be able to pin down exactly where the problem is and have more chance of fixing it.
That way you should be able to pin down exactly where the problem is and have more chance of fixing it.
- 1234abcdcba4321
-
Scratcher
1000+ posts
Some issues I can't solve
I don't really understand what you're trying to do but a standard debugging technique is to simplify and reduce. If one script does something and then broadcasts to a another try breaking that chain so you can check that the first script has done what it should. Try getting rid of scripts and sprites that are not necessary at this stage, working with a copy of the project if that helps.
That way you should be able to pin down exactly where the problem is and have more chance of fixing it.
The first thing I did was trying to move the costume3/costume4 switch later in, and when i moved it to the start of the “forever” (rather than the end) it worked. Would that be a scratch bug?
Also, I said exactly what I intend to do - what don't you understand?
as a note, I solved both issues.
Last edited by 1234abcdcba4321 (Oct. 20, 2016 16:30:10)
- KC_APRIL30
-
Scratcher
31 posts
Some issues I can't solve
I hope you like this game and also them issues cant be fixed (some) but im sure it'll still work
- deck26
-
Scratcher
1000+ posts
Some issues I can't solve
OK, I've had a closer look and see what you mean. The forever loop should alternate the costumes and appears to do so but what gets stamped doesn't match that even though what is saved to the list does. The calc custom block is irrelevant - I've disabled it and it doesn't change anything.
So I agree there's something odd happening. It needs stripping down to something simpler if you want to report it as a bug though.
So I agree there's something odd happening. It needs stripping down to something simpler if you want to report it as a bug though.
- KC_APRIL30
-
Scratcher
31 posts
Some issues I can't solve
deck can you help e I don't know what I have to do to become a scratcher I wanna get cloud variables could you tell me how?
- deck26
-
Scratcher
1000+ posts
Some issues I can't solve
deck can you help e I don't know what I have to do to become a scratcher I wanna get cloud variables could you tell me how?Please don't post in other people's topics. That's really a question about Scratch for which there's a separate forum but what you need to do is keep sharing, liking, favoriting and posting in the forums and you should be offered the chance to become a Scratcher.
- deck26
-
Scratcher
1000+ posts
Some issues I can't solve
I played around with it and it seemed to work better when I reset the centre of the green costume. I can't do any more tonight but here's my remix if it's of any help. https://scratch.mit.edu/projects/126705141/
- 1234abcdcba4321
-
Scratcher
1000+ posts
Some issues I can't solve
OK, I've had a closer look and see what you mean. The forever loop should alternate the costumes and appears to do so but what gets stamped doesn't match that even though what is saved to the list does. The calc custom block is irrelevant - I've disabled it and it doesn't change anything.
So I agree there's something odd happening. It needs stripping down to something simpler if you want to report it as a bug though.
The calc custom block is for a different part of my project, I might make something to report it though.
Also, as I said, I've already mostly fixed it.
(ps. now that i finished it (mostly), i'm thinking of making the project 1s1s1c0v)
Last edited by 1234abcdcba4321 (Oct. 21, 2016 16:22:58)
- Discussion Forums
- » Help with Scripts
-
» Some issues I can't solve