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

#1 2008-06-18 13:08:19

Arkaidy
Scratcher
Registered: 2008-06-18
Posts: 6

Three questions from a n00b.

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

 

#2 2008-06-18 14:16:42

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: Three questions from a n00b.

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

 

#3 2008-06-18 14:50:47

Arkaidy
Scratcher
Registered: 2008-06-18
Posts: 6

Re: Three questions from a n00b.

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

 

#4 2008-06-18 16:17:10

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: Three questions from a n00b.

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

 

#5 2008-06-18 17:21:27

Arkaidy
Scratcher
Registered: 2008-06-18
Posts: 6

Re: Three questions from a n00b.

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!

Offline

 

#6 2008-06-18 17:29:05

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: Three questions from a n00b.

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

 

#7 2008-06-18 21:22:09

Arkaidy
Scratcher
Registered: 2008-06-18
Posts: 6

Re: Three questions from a n00b.

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!

Offline

 

#8 2008-06-19 06:36:27

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: Three questions from a n00b.

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

 

#9 2008-06-19 09:24:32

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Three questions from a n00b.

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.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#10 2008-06-19 11:12:23

Arkaidy
Scratcher
Registered: 2008-06-18
Posts: 6

Re: Three questions from a n00b.

Seems that it only takes PNG files...  that's what my experamentation wrought, anyway.  Thanks for the advice!

Offline

 

#11 2008-06-20 19:12:04

Arkaidy
Scratcher
Registered: 2008-06-18
Posts: 6

Re: Three questions from a n00b.

I had to reload it to fix some bugs, but I think it's finished!

Offline

 

Board footer