Three Questions!
1) Could someone please tell me how to make my sprites bounce off the sides of the maze that is my background?
My sprites are blue and yellow, and my maze lines are brown. The maze is the background. Right now my sprites are walking over the lines and I want them to be confined by the lines.
2) How do I hide "items" behind parts of the background? My sprite is supposed to wander through the maze and "dig up" the 'x' on the map. Some of the 'x's have a treasure under them, some don't. When they get 9 treasures, the game is over. But I'm not sure how to hide 'treasure' under the 'x's. The 'x's are on the background too, but are deletable.
3) I have an introduction to the game, with a sprite that talks to you in a sort of slide show. I would like to merge the two files, the intro then followed by the playable game. How do I do that?
Offline
Okay, I will try to answer the questions
1. Hmm, this is a toughy. Try this- Make a box sprite that has 4 colors and one touches each side. Put these scripts on it.
<when I receive[ Start Game]>
<set[ Ghost ]effect to( 1000)>
<forever>
<if><color[ Top Color ]is over[ Brown]>
<broadcast[ Top]>
<end>
<if><color[ Bottom color]is over[ Brown]>
<broadcast[ Bottom]>
<end>
<if><color[ Right Color ]is over[ Brown]>
<broadcast[ Right]>
<end>
<if><color[ Left ]is over[ Brown]>
<broadcast[ Left]>
<end>
Now, Put this on the guy who is doing the maze.
<when I receive[ Top]>
<change y by( -5)>
<when I receive[ Bottom]>
<change y by( 5)>
<when I receive[ Right]>
<change x by( -5)>
<when I receive[ Left]>
<change x by( 5)>
That should work.
2. Try this-
<when green flag clicked>
<set[ Ghost ]effect to( 100
<forever>
<if><touching[ Digger]>
<set[ Ghost ]effect to(0)>
<stop script>
This will make the treasure invisible until the Person touches it, then it will show up.
3. Simple, Import the introductory sprite into your game and at the end of it, have it brodcast start game or something like that. Then, instead of When flag clicked things at the top, use When I recieve "Start Game" and put a show directly below that. Then, Put a when Flag clicked, hide on every sprite.
Hope that helped. Oh, and, You aren't a n00b.
Last edited by Bobby500 (2008-06-18 14:17:39)
Offline
Thank you, Bobby, I will try that! I'm not sure what you mean by your last answer though, but I'll try it. If I set the sprite to broadcast "start game" when it finishes it's speech, that can change the background too?
I am a n00b - I've been on for like, a day!
Offline
Arkaidy wrote:
Thank you, Bobby, I will try that! I'm not sure what you mean by your last answer though, but I'll try it. If I set the sprite to broadcast "start game" when it finishes it's speech, that can change the background too?
I am a n00b - I've been on for like, a day!
Yeah, Just put
<when I receive[ Start Gmae
<switch to costume[ Background 2
But put that into the backgrounds slot. It will say background instead of costume though.
Last edited by Bobby500 (2008-06-18 16:17:30)
Offline
Arkaidy wrote:
Oh, I see! I've fixed 2 and 3, and I'll just start tackling 1 now. Thank you so, so much for this help!
Your welcome! Tell me when its finished, I want to see it!
Offline
Arkaidy wrote:
Here it is!
http://scratch.mit.edu/users/Arkaidy
Although - now I can't figure out how to change my user picture. I can't seem to get it to accept my uploaded images...
*sigh*
Thank you again for ALL your help!
Yeah, I have the same problem. I don't know how it works, it sometmes takes them and sometimes doesn't.
Offline
Bobby500 wrote:
Arkaidy wrote:
Here it is!
http://scratch.mit.edu/users/Arkaidy
Although - now I can't figure out how to change my user picture. I can't seem to get it to accept my uploaded images...
*sigh*
Thank you again for ALL your help!Yeah, I have the same problem. I don't know how it works, it sometmes takes them and sometimes doesn't.
It may be that it has acceptted your picture but not refreshed the image cache. Try shutting down your brower and restarting it and see if the picture has changed.
Offline