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

#1 2008-02-26 07:13:10

andra
Scratcher
Registered: 2008-02-26
Posts: 1

Scratch game

i want to mak game but i want to my spirite throw something

Offline

 

#2 2008-02-29 00:10:30

fluffyfluflu2
Scratcher
Registered: 2008-02-17
Posts: 100+

Re: Scratch game

that is simple put this as your block<when[  ]key space pressed> wait .1 second <next costume> and so on until you reach the end and switch it back to custume 1


http://scratch.mit.edu/forums/viewtopic.php?id=5084rememberonly you can make a difference join the community today change nice effect by 100

Offline

 

#3 2008-02-29 08:08:40

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: Scratch game

If you want the Sprite doing the "throwing" to throw in the direction that it is pointing,  one way would be to send a broadcast when the throw is to happen.  When the thrown sprite gets the broadcast, it will do its thing.  I'll assume that you want a clown to throw a pie:

Pie has this Script:

When I Receive "Throw" <- Note: "Throw" is a broadcast that the clown sent.
Go to (Clown)
Point in Direction ("direction" of "clown")  <- Note: this is the "something" of "some-sprite" Sensing block.
Show
   Repeat until <touching edge>
   Move 2
Hide


To use the "something" of "some-sprite" sensing block, pull it into the script area, and use the right pull down to find the sprite you want, then the left one to select what you want to know about that sprite.  You can get the x_position, y_position, direction, etc. of any other sprite, as well as its defined variables.

-MrEd

Offline

 

#4 2008-03-01 14:18:41

mankee34
Scratcher
Registered: 2008-02-27
Posts: 19

Re: Scratch game

In my game, I have my main character click an item. I then have him go to a door which leads to another room. I want an item to appear in the other room only if the original item has been clicked. Is there a way to do this?

Offline

 

#5 2008-03-01 14:20:50

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Scratch game

Yes.  Have the first item change costume when it is clicked.  Then have the second item detect the first sprites costume, and only show if the first sprites costume has changed.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#6 2008-03-01 14:24:15

mankee34
Scratcher
Registered: 2008-02-27
Posts: 19

Re: Scratch game

How do you make it detect the costume change? Do you just have the first item broadcast?

Offline

 

Board footer