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

#1 2011-11-27 13:49:51

MineMaster
Scratcher
Registered: 2011-11-05
Posts: 4

How to: Make a Simple Platformer

Hello all!
One of the most common game types are platformers. A examples of a plaformer is CubeWorld by Tanner-FBI. Theses simple games can be amazingly fun. So here's a really simple way to makaae one.

1. Make a sprite. This will be your main charecter in the game.
2.You'll need a jump script and a moving script for this character. You can make a moving script by doing:

Moving Script:
When flag clicked, forever, if (right arrow key pressed), change x by 4
and
When flag clicked, forever, if (left arrow key pressed), change x by -4

Jump Script:

If touching (color of platform), repeat 10, change y by (choose between 6 to 12)
and
When flag clicked, forever, repeat until, touching (color of platform), change y by (choose between -2 to -6)

3. Now that you have made the scripts for your main characters, you need to make the stages of the game. Go to stage and make backgrounds with some sort of obstacle with lava, or at least some type of obstacle. This varies on the creators opinion. In ever stage, make a little circle or square, each a different color (see why in step  5)

4. Now, make a broadcast thing for every single stage. I would call them l1, l2, l3 ect. Now, say when I recies l1, switch to background 1 or something like that so that level 1 will match with l1.

5. Now go back to the main sprite. Make a script saying:

When flag clicked, forever, if, touching color (color of circles/shape of that level), brodcast (the level after the level you're on), go to x and y(where you want him to start)

Do this for every level.

Also, make a scipt that makes the obstacle actually be an obstacle. Like,
When flag clicked, forever, if (color red(because of lava)) touched, broadcast l1.

6. I forgot to say this before, you should have a final stage saying Victory or To Be Continued. So you should do step 4, except instead going to the next level, it should go to the victory stage.

7. The main sprite should have a script saying,
When flag clicked, show, go to x and y(starting point) 
and
When I recieve victory (or maybe lvl10?), hide.

8. Now you can make many, many variations, like adding music or a menu (actually, when you're making a menu, you should make it first, and then start programming the game).

9. Test it and see if there are any glitches. IF there are glitches, try to fix them.

10. Play it and have fun!

Thanks for reading. If you notice anything I left out, please tell me or if one of the scripts don't work. Remeber, this is a SUPER, SUPER simple way to make a platformer and it completely varies on the creator. You can make this a lot more cooler by using variables, and instead of have colored shapes,  invisable lines to trigger it to go to the next level. So this is really good, for people that just start scratching! Thanks, and have fun!

Offline

 

#2 2011-11-27 14:05:01

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: How to: Make a Simple Platformer

Good guide! Keep posting like this and you won't have that 'New Scratcher' status for much longer!  wink


Why

Offline

 

#3 2011-11-27 14:28:17

pilot-
New Scratcher
Registered: 2011-11-24
Posts: 28

Re: How to: Make a Simple Platformer

i find these very boring and bland. scratch is filled with color sensing platformers and they are most always the same idea:

hurr durr dont touch red get to the yellow

and these games usually follow similar level designs.  if you decide on doing one of theses platformers try to make it a little more original because to be honest if had a penny for everyone color sensing platformer i've played on scratch i'd probably have enough money to buy a burger at McDonald's. if you follow my recommendations maybe YOU will not be a part of scratch's mainstream culture anymore but be a weird hipster like veggie but at least makes different games

Offline

 

#4 2011-11-27 14:29:15

puppetadventurer
Scratcher
Registered: 2011-02-20
Posts: 1000+

Re: How to: Make a Simple Platformer

pilot- wrote:

hurr durr dont touch red get to the yellow

>:CCC


3

Offline

 

#5 2011-11-27 23:02:59

MineMaster
Scratcher
Registered: 2011-11-05
Posts: 4

Re: How to: Make a Simple Platformer

Well, like I said, it's a very,very, very simple way of making a scratch platformer. I myself don't use scripts even close to this. But this is for the very, very, very starters.

Offline

 

#6 2011-11-28 10:13:08

Freakish
Scratcher
Registered: 2011-10-25
Posts: 1000+

Re: How to: Make a Simple Platformer

pilot- wrote:

i find these very boring and bland. scratch is filled with color sensing platformers and they are most always the same idea:

hurr durr dont touch red get to the yellow

and these games usually follow similar level designs.  if you decide on doing one of theses platformers try to make it a little more original because to be honest if had a penny for everyone color sensing platformer i've played on scratch i'd probably have enough money to buy a burger at McDonald's. if you follow my recommendations maybe YOU will not be a part of scratch's mainstream culture anymore but be a weird hipster like veggie but at least makes different games

Yes, seeing lots of the same games are boring, I agree with you. But, making those simple games helps people understand the program more, so that they can make more unique games.


http://i.imgur.com/y3RBV.jpg

Offline

 

#7 2011-11-28 12:47:22

G0D_M0D3
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: How to: Make a Simple Platformer

Wow, this helped me with scratch a little. Thanks!

I want to murder the 180/60 sec. rule.


I made a MC texture pack! Get it at planetminecraft!
http://i.imgur.com/0EG0u.png

Offline

 

#8 2011-12-05 11:33:42

bleach23
New Scratcher
Registered: 2011-09-18
Posts: 2

Re: How to: Make a Simple Platformer

This is the best platformer design ever! keep up the good work!

Offline

 

#9 2011-12-21 17:50:07

Overlord9
Scratcher
Registered: 2010-06-19
Posts: 4

Re: How to: Make a Simple Platformer

La la loopsie

Offline

 

#10 2011-12-23 15:17:04

Shantufay
New Scratcher
Registered: 2011-12-04
Posts: 22

Re: How to: Make a Simple Platformer

Thanks for the guide. I might try it out later.  smile

Offline

 

#11 2012-01-07 10:45:11

VeryFunGames
Scratcher
Registered: 2011-06-27
Posts: 5

Re: How to: Make a Simple Platformer

Thanks! I Made My First platformer! (Chomp) And it turned Out Great!

Offline

 

Board footer