Discuss Scratch
- Purpleleaf09
-
19 posts
Invisible Sprites
How can I have an object be invisible but still have the properties of being shown? For example, if you click on a certain place on a blank screen, something will happen. Thanks in advance.
- 21lyoja
-
100+ posts
Invisible Sprites
That'd work, but the problem is that it'd flash on and off of the screen, visually.
Try that.
- 21lyoja
-
100+ posts
Invisible Sprites
Actually, I tried my script and it didn't work. But if you set it to 99 instead of 100, it does. Still very invisible, and actually works.
- asivi
-
1000+ posts
Invisible Sprites
The ghost effect works fine for me. Actually, I tried my script and it didn't work. But if you set it to 99 instead of 100, it does. Still very invisible, and actually works.

- 21lyoja
-
100+ posts
Invisible Sprites
What I meant is that the ghost still works as it's supposed to, but when your ghost value is at 100 the sprite cannot be clicked.The ghost effect works fine for me. Actually, I tried my script and it didn't work. But if you set it to 99 instead of 100, it does. Still very invisible, and actually works.
- asivi
-
1000+ posts
Invisible Sprites
The same thing that i've said before,. that's not happening to me.What I meant is that the ghost still works as it's supposed to, but when your ghost value is at 100 the sprite cannot be clicked.The ghost effect works fine for me. Actually, I tried my script and it didn't work. But if you set it to 99 instead of 100, it does. Still very invisible, and actually works.
My browser / operating system: Windows 7, Firefox 47.0, Flash 22.0 (release 0)
Last edited by asivi (July 17, 2016 19:36:37)
- 21lyoja
-
100+ posts
Invisible Sprites
Huh. What I did is I created a project where the normal scratch cat's ghost value is set to 100, and if it is clicked, it changes a variable by 1. It wasn't changing the variable. I then changed the ghost value to 99, and it worked fine.The same thing that i've said before,. that's not happening to me.What I meant is that the ghost still works as it's supposed to, but when your ghost value is at 100 the sprite cannot be clicked.The ghost effect works fine for me. Actually, I tried my script and it didn't work. But if you set it to 99 instead of 100, it does. Still very invisible, and actually works.
My browser / operating system: Windows 7, Firefox 47.0, Flash 22.0 (release 0)
- asivi
-
1000+ posts
Invisible Sprites
Test https://scratch.mit.edu/projects/116484791/ if you want.
- 21lyoja
-
100+ posts
Invisible Sprites
Here's what I had:
And it didn't work. I understand how yours worked and mine didn't, though, with the mouse down and touching mouse sensory blocks.
And it didn't work. I understand how yours worked and mine didn't, though, with the mouse down and touching mouse sensory blocks.
- asivi
-
1000+ posts
Invisible Sprites
I've tested yours and the event block is unable to detect the sprite as you said.
- asivi
-
1000+ posts
Invisible Sprites
https://scratch.mit.edu/projects/116489211/Yours works but adding lag because the hide an show are in a forever loop.
And you said my idea wouldn't work
- Spontaneous08
-
100+ posts
Invisible Sprites
Yes, but a forever loop does not add much lag, if any at all, unless you have a crappy computer.
- asivi
-
1000+ posts
Invisible Sprites
That isn't a valid reason to make an script inefficient. Yes, but a forever loop does not add much lag, if any at all, unless you have a crappy computer.
- Spontaneous08
-
100+ posts
Invisible Sprites
If you feel like ‘forever’ is ‘innificient’ then why don't you replace it with a
And before you say ‘Yeah, but that causes lag too’, guess what the most viewed project on scratch is? Paper Minecraft. Take a quick look at the scripts and you will see that that ‘repeat’ block is used very often.
Also, I don't think he will make a very complex project where lag will be very much of a problem.
And before you say ‘Yeah, but that causes lag too’, guess what the most viewed project on scratch is? Paper Minecraft. Take a quick look at the scripts and you will see that that ‘repeat’ block is used very often.
Also, I don't think he will make a very complex project where lag will be very much of a problem.
- asivi
-
1000+ posts
Invisible Sprites
The whole script is inefficient not only a block, The blocks causing more lag are problaby the related with graphics, all belonging to looks (Show and Hide included) set of blocks, and those intended to detect a color when touching.