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

#1 2007-12-06 14:57:09

kiwimcc
Scratcher
Registered: 2007-12-05
Posts: 2

Help for new people!

Yes hello i was just wonderin if its possible 2 make a game where if the score = a certian number a message would display can any 1 hellp?

THX

Offline

 

#2 2007-12-06 15:31:37

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

Re: Help for new people!

here's one easy way.
Put the message on a background for the stage.

when green flag clicked
switch to background plain
wait until score > 10
switch to background message-background

Offline

 

#3 2007-12-06 22:11:38

Vanslar
Scratcher
Registered: 2007-03-17
Posts: 100+

Re: Help for new people!

that or you could make a variable....


  I am a royal pain in the butt, I am ~Vanslar~       
      Want better gravity? Go to
Realistic Gravity, By Vanslar 2-D
Want a better way to spend your spare time? CubeField

Offline

 

#4 2007-12-07 00:05:03

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Help for new people!

<when green flag clicked>
   <switch to costume[ blank background
   <wait until><( <{ score }> <=> 10 )>
   <switch to costume[ message background

What Kevin Karplus said in blocks.


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#5 2007-12-08 08:37:04

Kashi
Scratcher
Registered: 2007-09-25
Posts: 1

Re: Help for new people!

Hi, I'm just so to speak semi-new here ( 3 months or so) but I need some help.
Is there any possibility to kinda freeze one sprite while the others are still active.
The point is that in my project several sprites react to the same key, and one needs to stay the way it changed and the other one should continue...
I hope this was not too confusing, but thanks for your help in advance^^
bye bye Kashi

Offline

 

#6 2007-12-08 13:19:51

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

Re: Help for new people!

You can have a variable "active?" in each sprite, then put a test at the beginning of the script

when key space pressed
if active? > 0
   ...


Setting the "active?" variable for the sprite to zero would make it no longer respond to key commands that have the test.  Setting it to 1 would reactivate the sprite.

Offline

 

Board footer