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

#1 2009-10-03 06:49:59

aliceguardaigatti
Scratcher
Registered: 2009-09-17
Posts: 1

How to move from a script to another?

Hi there, I'm Italian and to write in English is a bit hard for me, sorry for my mistakes!
I hope to manage to explain myself.

I'm new at Scratch but I would like to complete my first project...

My problem: Clicking on a sprite I'd like another sprite would appear..
[a help botton clicked shows the instructions for a game].

Someone could help me?
Thank you.

[blocks] <when[  ]clicked> [/blocks]

Offline

 

#2 2009-10-03 08:43:06

Digimath
Scratcher
Registered: 2007-07-07
Posts: 100+

Re: How to move from a script to another?

aliceguardaigatti wrote:

... Clicking on a sprite I'd like another sprite would appear..
[a help botton clicked shows the instructions for a game].


[blocks] <when[  ]clicked> [/blocks]

Hi aliceguardaigatti,

In your button sprint, have the "when clicked" head block execute a broadcast with some message like "help button clicked".  Then your  other script would have a "when I receive help button clicked" head block.  Good luck with finishing your first project.

<when[  ]clicked>
<broadcast[ help button clicked ]and wait c>


Other sprite has

<when I receive[ help button clicked
<go to x sad  0 )y sad  0
<go to front>
<show>


I've updated my text adventure game.
Colossal Cave 150http://scratch.mit.edu/static/projects/Digimath/3003787_sm.png

Offline

 

Board footer