Sometimes a visible? purple block (with pointed ends) would be very useful.
For example: shooting. You can't shoot when the Shot is visible, but you can, when it's invisible (after touching the edge, or the enemy). Presently, you have to use a new variable, eg. YouCanShoot, which has to be set to 0 after shooting, and set to 1, if the Shot reaches the edge or a particular sprite.
(Have you got any other ideas for that problem?)
I'm talking about this 'imaginary' block:
Offline
Personally, I think using a variable for that is OK. But I am sure others would agree a visibility block would be better. We will come back to all your suggestions as we think about new features. Thanks a lot for taking the time of creating an image and everything!
Offline
This has been in Streak since v0.0. See my signature if you want it.
Offline
billyedward wrote:
This has been in Streak since v0.0. See my signature if you want it.
/bump
Offline
If It Was The Spacebar To Shoot, You Could Do: When Key [space] Pressed, Broadcast [shoot] And Wait. Then In The Bullet, Do: When I Receive [shoot] Then Put The Script For It To Keep Going Untill It Hit's Something. (Edge, Enemy, etc.) But Yes, That Would Be A Useful Block, And Like billyedward Said, It's Been In Streak For A Looooooooooong Time. But It Would Be An 'obsolete!' Block When You Uploaded It. Also, You WOULD Be Able To Hack Scratch For It, Which Is What I'm Gonna Do Like NOW. If I Figure Out How To Make It, I'll Tell You How.
Offline
Use a 480x360 white/black sprite in the very very back layer that has 100% ghost effect and this script:
[blocks]
<when green flag clicked>
<forever>
<if><touching[ shotSprite
<set{ visible }to( 1
<else>
<set{ visible }to( 0
<end>
[/blocks]
This works because hits are only registered on visible sprites, but they work on ones with 100% ghost (which is really invisible)
Offline
nXIII wrote:
Use a 480x360 white/black sprite in the very very back layer that has 100% ghost effect and this script:
[blocks]
<when green flag clicked>
<forever>
<if><touching[ shotSprite
<set{ visible }to( 1
<else>
<set{ visible }to( 0
<end>
[/blocks]
This works because hits are only registered on visible sprites, but they work on ones with 100% ghost (which is really invisible)
True, But If You Press The Red Stop Sign And Stop Everything, It Will Appear.
Offline