Sadly, there isn't such an option in Scratch. Although it would be great if it was.
Offline
Or, create a sprite (or sprites) to show the digits of the variable, instead of using the standard variable display box. You can then show/hide this as required.
Offline
I used the method Mayhem described too.
one thing is, that you have to be careful with "gotofront" because often objects come in front of the digits. Not recommended when you are creating a scroller game.
The good thing is that it is possible to stamp text on the screen. check out my project "3D-Pong" to see what I mean.
joren
Offline
Hi prasannab. Sounds like you created a variable and then tried to write its name into the numerical argument field of the movement blocks. Instead what you want to try is dragging the round variable block (a 'reporter' block) and dropping it into one of the fields of the target block
Offline
Zap6987 wrote:
How do you make variables appear by using broadcasting?
Heres a way:
[blocks]
Make a sprite that blends in with the background and is big enough to cover the variable.
<when green flag clicked>
<show>
<end script>
<when I receive[ go game (or whatever) either:
<set[ ghost ]effect to( 100
OR
<hide>
That way the variable will show.
[/blocks]
Offline