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

#1 2010-03-06 15:28:36

mini2000
Scratcher
Registered: 2009-11-06
Posts: 6

help

Is there an easy way to make a game?      neutral

Offline

 

#2 2010-03-06 16:03:43

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: help

That depends on the type of game you're planning to make.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2010-03-07 10:35:16

Stickman704
Scratcher
Registered: 2009-01-31
Posts: 1000+

Re: help

There are easy games to make.

Here's a nice classic maze game to make. Made up on the spot by me.

First draw your maze. Anything you like.
Then make a sprite which is big enough to go through your maze without touching the walls.

Click on your ball and apply these blocks to it.

[blocks]
<when green flag clicked>
<forever>
<if> <key[ Up ]pressed?>
<change y by( 5
<if> <key[ Down ]pressed?>
<change y by( -5
<if> <key[ Left ]pressed?>
<change x by( -5
<if> <Key[ Right }pressed?>
<change x by( 5
<end>
[/blocks]

Now of course you're not going to get anything in life from just copying, so I'll explain.

When the green flag is clicked then if up is pressed then it will move up.
When the green flag is clicked then if down is pressed then it will move down.
And so on.

Oh yeah, drag the ball to your starting point. Then do this.

[blocks]
<when green flag clicked>
<go to x sad  Don't change anything )y sad  in these 2 because it will have set your stating point for you.
[/blocks]

Ok, if you try it now, you'll see that if you touch the walls, nothing happens. We need to change that.

Apply these blocks the ball.

[blocks]
<when green flag clicked>
<forever if> <touching[ Maze
<go to x sad  The same block we used above )y sad  because that is your starting point.
<end>
[/blocks]

That's about it. Try it, when you touch the walls you will go back. You have just made a very simple but fun maze game.

Try to add some more blocks to the game. Happy scratching.  smile


Dun dun dun dun dun dun.... dun dun dun dun dun dun...  tongue

Offline

 

Board footer