Plz help me out!! I wana kno how to switch from 1 sprite, 2 another 1. its all very confusing!! Like, if u press a button(which is a sprite), to go to another sprite, how would u do that? PLEASE ANSWER!! Thanks!
The one and only one this site,
- Rukia Kuchiki ^o^
Offline
You meah switching different costumes to make a person move?
Here is a basic code
When green flag clicked
Forever
If
Key (whatever key your using)pressed
switch to costume ( the different costume)
If you want to make one person disappear and a completely different spriteto appear with different commands. Then use the same code, but instead of using switch to costume use
hide
then on the other sprite which appears put the same code, but instead of hide use
go to (name of the sprite its replacing)
show
That basically makes it show up where the other sprite disappeared.
If you want to see a it working see the project on this link to see what you can really do with sprites. http://scratch.mit.edu/projects/djm111/306630 Hope it Helps
{
Offline
djm111 wrote:
You meah switching different costumes to make a person move?
Here is a basic code
When green flag clicked
Forever
If
Key (whatever key your using)pressed
switch to costume ( the different costume)
If you want to make one person disappear and a completely different spriteto appear with different commands. Then use the same code, but instead of using switch to costume use
hide
then on the other sprite which appears put the same code, but instead of hide use
go to (name of the sprite its replacing)
show
That basically makes it show up where the other sprite disappeared.
If you want to see a it working see the project on this link to see what you can really do with sprites. http://scratch.mit.edu/projects/djm111/306630 Hope it Helps
{
Plz explain in blocks! Its easier for me that way, and Im talking about the sprite disappear, and the a different 1 appearing in its place. For instince, if I want to be able to click a button, and I want sprite 1 to change to Sprite 2. Is there any way for me to do that? Plz answer!! Thank You!
Offline
Here's how I would do it:[blocks]<when[ button ]clicked><broadcast[ button clicked ][/blocks]
and now for the sprite you want appearing:[blocks]<when I receive[ button clicked]<show>[/blocks]
if you want the sprite to disappear have this:[blocks]<when I receive[ button clicked ]<hide>[/blocks]
Offline
hi...maybe i am in the wrong thread...confusion has become contagious and i am surely
flabbergasted with confusion. I cannot make my things do what I want them to do.
What I am trying to accomplish is this:
sprite1 is dragged over to sprite2 and as soon as sprite1 touches sprite2, sprite2's costume changes. Then sprite1 can be used to change Sprite3 or Sprite4, etc. and when it is completed then sprite1 can be dragged near where it originally was and then snap into position from there.
Is this all possible?
i'm trying to create a paint-fill simulation by changing out the costumes by actually touching them, rather than clicking on a button to change them.
it's a challenge.
thanks.
:-)
Scratch onwards....
Last edited by suz_0001 (2008-11-25 13:38:54)
Offline
I f you mean that you want one sprite to appear where another one is, use a :
<go to[ Sprite 2]>
If the sprite's name is different, y'know, that's just a suggestion.
If you're having trouble with anything else, though, I suggest that you experiment with scripts that you think you want.
8)
Offline
suz_0001 wrote:
hi...maybe i am in the wrong thread...confusion has become contagious and i am surely
flabbergasted with confusion. I cannot make my things do what I want them to do.
What I am trying to accomplish is this:
sprite1 is dragged over to sprite2 and as soon as sprite1 touches sprite2, sprite2's costume changes. Then sprite1 can be used to change Sprite3 or Sprite4, etc. and when it is completed then sprite1 can be dragged near where it originally was and then snap into position from there.
Is this all possible?
i'm trying to create a paint-fill simulation by changing out the costumes by actually touching them, rather than clicking on a button to change them.
it's a challenge.
thanks.
:-)
Scratch onwards....
Hi Suz - You probably should have started your own thread with this question...it is getting a little confusing here! However, the solution (or, I should say One of the solutions) to your problem (and the problem of the original post) lies in learning how to use the "Broadcast message" block and the "When I Receive Message" blocks. Right click on those blocks (under the Control tab) and look at the Help for them and see if you can solve the problem using those.
Offline