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

#1 2010-11-01 15:37:14

UFO10
New Scratcher
Registered: 2010-11-01
Posts: 2

add a button to a project

i want to add a button to a door that will then open the door and move my sprite inside when it is clicked. Can anyone tell me how to do this?

thanks

Offline

 

#2 2010-11-01 16:26:12

The_Dancing_Donut
Scratcher
Registered: 2010-08-03
Posts: 1000+

Re: add a button to a project

Make the button sprite.

(button sprite)
When button clicked
broadcast [open door]

(Door sprite)
When I recieve [open door]
*script that makes door open*

(Character sprite)
When I recieve [open door]
*script to make character move into door*


Offending strangers since 2010.

Offline

 

#3 2010-11-02 19:33:31

UFO10
New Scratcher
Registered: 2010-11-01
Posts: 2

Re: add a button to a project

i cant get my door to move like you see it happen in the real world .  sad  can someone tell me how to do this ?

Offline

 

#4 2010-11-02 21:48:07

lasc12
Scratcher
Registered: 2007-11-18
Posts: 100+

Re: add a button to a project

UFO10 wrote:

i cant get my door to move like you see it happen in the real world .  sad  can someone tell me how to do this ?

Different costumes for each frame of animation. And then a script like this:

<hat block>
<start forever>
<next costume or next background>
<wait _ secs>
<end forever>

The forever can be a repeat until or something like that. What ever you need.

Last edited by lasc12 (2010-11-02 21:48:37)


Thus I have spoken.

Offline

 

Board footer