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.
Offline
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.
Offline
@ 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
@ MoreGamesNow: All right! It works... Thanks.
@ 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
DewleafWolf wrote:
@ MoreGamesNow: All right! It works... Thanks.
@ 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
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...
I'll post later about it. It's Easter right now so I have to go. Thanks again!
Offline
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
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
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. But I watched it ALL the time when I did... So yes kind of. And yes to Pokemon because I watch it, used to collect the cards and I like drawing zombie versions of Pokemon. XD
Cool!! I don't get CN at my house, but my grandma does. So I watch Regular Show, Adventure Time, and Kids Next Door.
Offline
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.
Offline
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.
See in the picture below.
One less script if used! Hope this helps, too.
Last edited by kingofdallamas (2011-04-27 22:42:52)
Offline