Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » error when deleting lego block of Lego builder v1.0
- mikkel500
-
60 posts
error when deleting lego block of Lego builder v1.0
I have problems with my delete block command. is there anyone who will say how I fixing it? you may also like to make a remix, the next remix features do I take maybe in the next version.
MIKKEL - denmark
MIKKEL - denmark
- mikkel500
-
60 posts
error when deleting lego block of Lego builder v1.0
why have not written in any of my debates?
- Lone-Wolf
-
87 posts
error when deleting lego block of Lego builder v1.0
Well, based on your script you have going there, it complicates the possibilities for deleting scripts. Personally, I would have built this game differently you could simply pull out a particular tool, or click a button to select your tool, then that makes you delete, build, change color, etc. So since you have it cloning when you want to add a block, and you already have it so that your clone is deleted if the answer equals delete, it SHOULD work. But here's the problem with your script.
If statements need to always be checked to see IF that something is happening. So this script isn't working:

But here's what it looks like fixed. THis works because the script is FOREVER checking to see IF it works.

I hope this helped!
If statements need to always be checked to see IF that something is happening. So this script isn't working:

But here's what it looks like fixed. THis works because the script is FOREVER checking to see IF it works.

I hope this helped!

Last edited by Lone-Wolf (May 19, 2013 20:35:10)
- dracae
-
1000+ posts
error when deleting lego block of Lego builder v1.0
Otherwise, it would only check the ifs the split second after (marker) is done.
- Lone-Wolf
-
87 posts
error when deleting lego block of Lego builder v1.0
Otherwise, it would only check the ifs the split second after (marker) is done.
Yes, indeedy.
- mikkel500
-
60 posts
error when deleting lego block of Lego builder v1.0
Thank you found error
- Discussion Forums
- » Help with Scripts
-
» error when deleting lego block of Lego builder v1.0