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

#1 2012-03-19 14:33:26

earlandrandypiggies
New Scratcher
Registered: 2012-03-19
Posts: 1

Help Me!!! x

Hi, when i make my sprite say something on one level, it keeps saying it on each level and iI don't want it too, and don't know how to stop it! PLZ PLZ PLZ PLZ help, coz im doing it for a scool project, and it' sdue in on fri!!! x

Offline

 

#2 2012-03-19 15:15:33

CheeseMunchy
Scratcher
Registered: 2008-10-13
Posts: 1000+

Re: Help Me!!! x

Can you upload it?


6418,

Offline

 

#3 2012-03-19 15:17:56

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: Help Me!!! x

Hmmm...I can't really give you specific help with only this amount of information, but I understand you're looking for something like this:

When [action] happens
if (level=1)
show
Is that what you're looking for? That's just a simple way of setting up an action that only happens when a variable equals what you want, like a level. If it's not what you want, let me know the more specific problem, and I can help you out more.

Last edited by stevetheipad (2012-03-19 15:18:07)


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#4 2012-03-19 15:45:26

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: Help Me!!! x

This belongs in help with scripts. I'll request it to be moved.

Last edited by turkey3 (2012-03-19 15:46:31)

Offline

 

#5 2012-03-19 16:05:09

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Help Me!!! x

As turkey3 mentioned, this belongs in the "Help with Scripts" forums - but fear not! I shall move it!

Offline

 

#6 2012-03-19 18:44:17

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: Help Me!!! x

I think what you need is this block:

Say [] for () seconds
This way you limit the time you want to say the thing for.
Ps: this is in looks

Last edited by turkey3 (2012-03-19 18:45:10)

Offline

 

#7 2012-03-19 19:18:14

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Help Me!!! x

when gf clicked
wait until <<level>=[whatever level you want]>
say [whatever you want to say] for (5) secs
other scripts here

Offline

 

#8 2012-03-19 19:41:38

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: Help Me!!! x

I think i know what's wrong, this happens in some of my games. try this script below:

when gf clicked
forever
  if <(level) = [# of Level you want to talk on]> //you will have to make a variable named level.
  say [Whatever you want to say]
  wait until <not<(level) = [# of Level you want to talk on]>> //This will make them stop talking..
  say () //...when the level you want to talk on is no longer the current level.
  Stop Script
  end
end
The Green Blocks can be found in operators and are shaped like flat hexagons. The Purple talking blocks can be found in looks. The Orange blocks can be found in control. REMEMBER TO PUT FOREVER AROUND ALL OF THIS!

I hope this works and helps your project.  big_smile


La La
I wrote an album.

Offline

 

Board footer