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

#1 2009-10-06 14:20:04

masterhand7
Scratcher
Registered: 2009-10-05
Posts: 100+

How to program a menu for a movie???

I'm still working on my school project (might as well announce it in Show and Tell), and I wanted to know if I could make a menu for my movie. Unfortunately, I don't know how to program one. Can anyone show me how?


Click here to see the first iPhone virus!
http://www.danasoft.com/sig/MASTERHAND7PWNZ.jpg

Offline

 

#2 2009-10-06 15:13:50

-Vizard-
Scratcher
Registered: 2009-10-06
Posts: 76

Re: How to program a menu for a movie???

First of all, make a background, and have it show when the project starts, then make a button, and have the text on it read "Play" or "Start", and have a code similar to this:

When Green Flag Clicked
Show
Go to Front

When Button Clicked
Broadcast Play
Hide

And then for the background, add this script:

When Green Flag Clicked
Show

When I Receive Play
Hide

And then for your animation, replace the When Green Flag Clicked or however you have it be activated with a When I Receive Play.
If yo have any questions, go ahead and ask.


http://img40.imageshack.us/img40/4921/vizardp.png

Offline

 

#3 2009-10-07 01:22:51

masterhand7
Scratcher
Registered: 2009-10-05
Posts: 100+

Re: How to program a menu for a movie???

Can you be more specific with the buttons and blocks?


Click here to see the first iPhone virus!
http://www.danasoft.com/sig/MASTERHAND7PWNZ.jpg

Offline

 

#4 2009-10-07 01:28:00

-Vizard-
Scratcher
Registered: 2009-10-06
Posts: 76

Re: How to program a menu for a movie???

Here: Make a button sprite named "Play" and add this code to it:
[blocks]
<when[ Play ]clicked>
<broadcast[ Play
<hide>

<when green flag clicked>
<show>
<go to front>
[/blocks]

Then add a sprite named "Bg" and add this code to it:

[blocks]
<when green flag clicked>
<show>
<go back( 1 )layers>

<when I receive[ Play
<hide>
[/blocks]

That help you out at all?

~Spine

Last edited by -Vizard- (2009-10-07 01:30:32)


http://img40.imageshack.us/img40/4921/vizardp.png

Offline

 

#5 2009-10-07 01:51:00

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: How to program a menu for a movie???

Helped me out  smile


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#6 2009-10-07 01:53:07

-Vizard-
Scratcher
Registered: 2009-10-06
Posts: 76

Re: How to program a menu for a movie???

Well, I can help two people in one post now! =P
Those are 1 sec scripts for me, so it wasn't much work, and once you know it it's easy, so glad it helped ya out, now I just gotta wait for masterhand to reply =S

~Spine


http://img40.imageshack.us/img40/4921/vizardp.png

Offline

 

#7 2009-10-07 02:35:01

masterhand7
Scratcher
Registered: 2009-10-05
Posts: 100+

Re: How to program a menu for a movie???

Thanks, Vizard! I'm going to include you in my credits!


Click here to see the first iPhone virus!
http://www.danasoft.com/sig/MASTERHAND7PWNZ.jpg

Offline

 

#8 2009-10-07 13:29:12

-Vizard-
Scratcher
Registered: 2009-10-06
Posts: 76

Re: How to program a menu for a movie???

Hey, no problem, and thanks for putting me in the credits, nice to have people who do that  big_smile

Good luck with your video!
~Spine


http://img40.imageshack.us/img40/4921/vizardp.png

Offline

 

Board footer