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

#26 2011-04-23 08:22:00

Spiro0
Scratcher
Registered: 2011-04-22
Posts: 22

Re: I'm new! Help?

The forever if block basically does a forever if you want it to. for example:
Forever If Music = 1
Play sound _____ and wait
Do you see what I mean? If Music = 0 then it wouldn't loop the music sound.


I LOVE PURPLE!!!!!!!!!!!!!! 8 |||||||||||||||||||||||||||

Offline

 

#27 2011-04-23 09:27:05

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: I'm new! Help?

One thing that might be "wrong" with your/my script is that you may be testing it the edit mode.  In that mode, you can normally drag-n-drop sprites, and it is more challenging to actually "click" them.  Drag-n-drop doesn't work there, but it does work online and in presentation mode.  Try it in presentation mode.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#28 2011-04-23 13:32:20

DewleafWolf
Scratcher
Registered: 2011-01-13
Posts: 100+

Re: I'm new! Help?

@ williambl: What's that for?

@ amcerbu: Okay! Thanks a lot! Yes, it was readable, I will probably not use the precise script you gave, though. Thanks for helping with all those... I'm trying them now.

Offline

 

#29 2011-04-23 14:30:04

DewleafWolf
Scratcher
Registered: 2011-01-13
Posts: 100+

Re: I'm new! Help?

@ MoreGamesNow: All right! It works... Thanks.  big_smile

@ amcerbu: Perfect, the background broadcast scripts work. Thanks! But how do I get the sprites to disappear and new ones to appear for the new place? I've seen it work all the time in other games like mine.

Offline

 

#30 2011-04-23 16:39:38

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: I'm new! Help?

DewleafWolf wrote:

@ MoreGamesNow: All right! It works... Thanks.  big_smile

@ amcerbu: Perfect, the background broadcast scripts work. Thanks! But how do I get the sprites to disappear and new ones to appear for the new place? I've seen it work all the time in other games like mine.

A broadcast block does not necessarily have to be coupled with only one When I Receive hat.  You can put a script in every sprite telling it to hide when it receives the "switch background" script.

Offline

 

#31 2011-04-24 19:27:55

DewleafWolf
Scratcher
Registered: 2011-01-13
Posts: 100+

Re: I'm new! Help?

Ah, that would explain it... But sadly I have some that may hide when you do something will them, therefore making them already hidden. When it goes from the first background to another, everything hides, when you come back, everything should show, right? But the sprites that were meant to STAY hidden would show again... Hard to explain, but I may not be able to do different scenes because of it.

Also, I need help with something else...  tongue
I'll post later about it. It's Easter right now so I have to go. Thanks again!

Offline

 

#32 2011-04-27 00:30:53

DewleafWolf
Scratcher
Registered: 2011-01-13
Posts: 100+

Re: I'm new! Help?

Oops, LOL, forgot to post it! Okay, here's the problem. I would like to do this:

1. Click on a rock. It's not actually a rock, it's a fallen bird egg... Collect 10 sticks to start a fire and cook it.
2. Collect all sticks, a fire appears, and it will tell you to find a pan of some sort. (flat rock) If you happen to collect the pan or sticks before you click on the bird egg, they will just be added to hidden variables.
3. Have the pan/rock and the fire made, the pan will automatically appear over the fire and the egg will crack open and be cooked over the fire.
4. After a few seconds the egg will appear cooked and will ask you to eat it, the fire and pan will stay (maybe not, though) and the egg will be eaten.

I have NO questions about scripts, it just doesn't work! Maybe I don't have the right blocks... I will post the scripts I'm using.

Offline

 

#33 2011-04-27 19:06:48

DewleafWolf
Scratcher
Registered: 2011-01-13
Posts: 100+

Re: I'm new! Help?

Here's the script for the egg: (This one only goes up to the point where it starts cooking, it doesn't continue to do the cooking/eating process yet.)

http://i56.tinypic.com/f4ntzo.jpg

(The image above is a little blurry because I saved it as a TIFF file not PNG...)

Here's the script for all the sticks, identical for each one; plus the scripts for the fire and pan:

http://i53.tinypic.com/es71gm.jpg

Look at them all and tell me what doesn't connect! It's all finished except for cooking and eating the egg...

Offline

 

#34 2011-04-27 19:45:08

GarSkutherGirl
Scratcher
Registered: 2009-04-27
Posts: 1000+

Re: I'm new! Help?

DewleafWolf wrote:

Thank you MoreGamesNow!! I will use that when I need it, which I have no doubt I will! Very helpful!

@ GarSkutherGirl: Yep. But I don't have an account, I just use it when I need it... To answer your questions: I don't watch My Life As A Teenage Robot because I don't get Nicktoons Network.  sad  But I watched it ALL the time when I did... So yes kind of.  tongue  And yes to Pokemon because I watch it, used to collect the cards and I like drawing zombie versions of Pokemon. XD

Cool!!  big_smile  I don't get CN at my house, but my grandma does. So I watch Regular Show, Adventure Time, and Kids Next Door.  tongue


Oh, the glory of it all - adorable cat people dressed as video game characters!
http://fc05.deviantart.net/fs71/f/2011/311/8/b/look_in_the_description_for_the_actual_epicness__by_garskuthergirl-d4fggrw.pnghttp://fc02.deviantart.net/fs70/f/2011/311/d/c/ahahahaha______by_garskuthergirl-d4fgc04.png

Offline

 

#35 2011-04-27 22:03:47

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: I'm new! Help?

I have (hopefully) solved you "cooking egg" problem.  When the Egg is clicked, it immediately asks is you have 10 sticks and 1 pan.  However, instead of an IF STATEMENT, you need to use a WAIT UNTIL <> block.  Try replacing both IF STATEMENTS with WAIT UNTIL statements.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#36 2011-04-27 22:39:01

kingofdallamas
Scratcher
Registered: 2010-03-07
Posts: 500+

Re: I'm new! Help?

MoreGamesNow wrote:

Dragging scripts:
a) just click the little padlock by the icon of your sprite (the little picture above your script)

b)
<when[ SPRITE ]clicked>
<repeat until><<  <not> <mouse down?> >>
<go to[ Mouse Pointer]>
<end>

I always use this.  It may be less convenient, but it is more adaptable than using the built-in drag-n-drop.

Instead of that (without using a script for dragging), you can just click the lock next to the sprite. This enables the sprite to be dragged during presentation mode.  smile

See in the picture below.
http://i35.tinypic.com/209fz83.png
One less script if used! Hope this helps, too.

Last edited by kingofdallamas (2011-04-27 22:42:52)


http://i853.photobucket.com/albums/ab99/Gilgamesh1192/Ninja%20Saga/ElementalJutsus2.gifhttp://i27.photobucket.com/albums/c192/BoomKaTish/GIF/thgfhgfhfhgf.gif
ハロー友だち!

Offline

 

Board footer