This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2007-07-21 16:39:16

geek94
Scratcher
Registered: 2007-05-14
Posts: 5

Making Variables Sprites/Game Speed

I'M not sure if I am alone on this but it would help out when scratching to be able to hide the Variable Displays. Like Having a setup round and then when playing the game they hide. Or letting them move on their own. I just think that that would be awsome. Also I noticed that the last game I made was fairly large... And Slow it jumped area to area. and I programed it right. So I was thinking that the L.L.K. Thing would be able to create more of a tolerance on the program for larger scripted projects Thanks  smile

Offline

 

#2 2007-07-22 00:06:01

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Making Variables Sprites/Game Speed

You're not alone

read http://scratch.mit.edu/forums/viewtopic.php?id=951

Offline

 

#3 2007-07-22 11:02:44

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Making Variables Sprites/Game Speed

I sympathize with you, not being able to hide the variables drives me nuts. If you read the above thread you will find that they  are already working on this and it will probably appear in the next version of scratch. As for your laggey game often I found that programs with larger scripts can work better online but if it is still slow you need to optimize scripts and reuse sprites as much as you can.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#4 2007-07-22 11:22:26

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Making Variables Sprites/Game Speed

The easiest way to hide variables temporarily is to put a sprite (that looks the same as the background) over it.

Offline

 

#5 2007-07-24 14:14:36

geek94
Scratcher
Registered: 2007-05-14
Posts: 5

Re: Making Variables Sprites/Game Speed

I have gotton around it its just not easy... If you needed to do it you could try to make a sprite that is the exact size and then color it different and goto front

Offline

 

#6 2007-07-24 14:18:02

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Making Variables Sprites/Game Speed

This of course only works on non-moving backgrounds.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#7 2007-07-24 23:37:21

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Making Variables Sprites/Game Speed

There are no moving backgrounds in scratch---they have to be emulated with sprites, and sprites *can* be moved in front of or behind variable displays.

Offline

 

#8 2007-07-29 14:17:58

Mick
Scratcher
Registered: 2007-03-23
Posts: 100+

Re: Making Variables Sprites/Game Speed

hmm  if you want to hide a variable from the screen go to the variable section & click the tick beside the variable you want to hide.


Go to www.legoless.com
It's my blog.  big_smile

Offline

 

#9 2007-07-29 14:34:05

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Making Variables Sprites/Game Speed

kevin_karplus wrote:

There are no moving backgrounds in scratch---they have to be emulated with sprites, and sprites *can* be moved in front of or behind variable displays.

Actually, moving backgrounds can also be simulated with background changes on the stage.

But the point was that if you are using a sprite to emulate a moving background, and you move it forward or back to show/hide variable windows, you will probably have to move every other sprite you are using forwards as well to make sure they remain visible.  It's a pain, and we could really do with variable displays being treated *exactly* like sprites.

****

Mick - we are talking about showing and hiding variable displays whilst the program is running, as part of the scripting.  EG, showing them to allow entery of data on sliders, then hiding them to run a pattern generating script based on the variables entered.  The tick boxes are o good for that.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#10 2007-07-29 16:45:30

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Making Variables Sprites/Game Speed

Having variable displays be more like sprites is a good idea.

The problem could also be addressed by switching from a deck-of-cards metaphor (with "move to front" and "move back <n> layers") to a depth model, where each sprite (and variable display) has a z value.  The scrolling backgrounds could be at z=200, while variables and sprites are a lesser depths.  Moving a variable behind or in front of another sprite would not involve all the other sprites being moved.

Offline

 

Board footer