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

#1 2010-06-29 09:58:50

codyronaldcamp
Scratcher
Registered: 2009-12-26
Posts: 100+

A Guide To A Simple Platformer

1. [blocks]<when[right  ]key pressed>
<change x by( 6[/blocks]

2. [blocks]<when[left  ]key pressed>
<change x by( -6[/blocks]

EDIT: 2. used to be 2.1.

Last edited by codyronaldcamp (2010-06-29 09:59:39)


http://i45.tinypic.com/332q9kz.png

Offline

 

#2 2010-07-01 08:59:56

Leeee
New Scratcher
Registered: 2010-06-29
Posts: 1

Re: A Guide To A Simple Platformer

Wow thanks when you come to think of it, it's really easy  smile

Offline

 

#3 2010-07-01 09:10:15

DaGamez
Scratcher
Registered: 2010-04-18
Posts: 1000+

Re: A Guide To A Simple Platformer

Leeee, it's actually like this to make it right:
<when green flag clicked>
<forever>
<if>
<key[right arrow]pressed?>
<point in direction( 90 )>
<move( 3 )steps>



And the left arrow one is the same, except change direction from 90 to -90, and key left arrow pressed.

Last edited by DaGamez (2010-07-01 09:12:53)


http://scratchhtmlviewer.net23.net/image.php?project=1229757&amp;user=DaGamez

Offline

 

#4 2010-07-01 09:51:29

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: A Guide To A Simple Platformer

DaGamez wrote:

Leeee, it's actually like this to make it right:
<when green flag clicked>
<forever>
<if>
<key[right arrow]pressed?>
<point in direction( 90 )>
<move( 3 )steps>



And the left arrow one is the same, except change direction from 90 to -90, and key left arrow pressed.

Yeah...

Otherwise motion is jerky.

Offline

 

#5 2010-07-01 09:59:40

DaGamez
Scratcher
Registered: 2010-04-18
Posts: 1000+

Re: A Guide To A Simple Platformer

Yep.


http://scratchhtmlviewer.net23.net/image.php?project=1229757&amp;user=DaGamez

Offline

 

#6 2010-07-01 09:59:47

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: A Guide To A Simple Platformer

This isn't a platformer. If you want to call it a platformer, there needs to be jumping...


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#7 2010-07-01 10:55:36

calebxy
Scratcher
Registered: 2009-12-31
Posts: 1000+

Re: A Guide To A Simple Platformer

And platforms.  tongue


I'm making my own Doctor Who series!  big_smile  See the first episode here.
And please join Story Zone!  big_smile

Offline

 

#8 2010-07-01 12:18:51

codyronaldcamp
Scratcher
Registered: 2009-12-26
Posts: 100+

Re: A Guide To A Simple Platformer

juststickman wrote:

This isn't a platformer. If you want to call it a platformer, there needs to be jumping...

You know, I will be adding jumping soon.
Also, this is just for your character.


http://i45.tinypic.com/332q9kz.png

Offline

 

#9 2010-07-02 01:19:28

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: A Guide To A Simple Platformer

You can also use platforming bases - RHY3756547 has a good one that you can find here. Just edit the scripts, costumes, and maybe more, and you've got a platformer!  smile


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#10 2010-07-02 01:23:14

Blade-Edge
Scratcher
Registered: 2009-06-13
Posts: 1000+

Re: A Guide To A Simple Platformer

Chrischb wrote:

You can also use platforming bases - RHY3756547 has a good one that you can find here. Just edit the scripts, costumes, and maybe more, and you've got a platformer!  smile

That one's good, but he said simple  tongue
Of course, he would still be able to handle it, but editing the script itself would be way too challenging.


http://img29.imageshack.us/img29/5145/scratchycat.gif CLASSY

Offline

 

#11 2010-07-02 01:24:07

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: A Guide To A Simple Platformer

Blade-Edge wrote:

Chrischb wrote:

You can also use platforming bases - RHY3756547 has a good one that you can find here. Just edit the scripts, costumes, and maybe more, and you've got a platformer!  smile

That one's good, but he said simple  tongue
Of course, he would still be able to handle it, but editing the script itself would be way too challenging.

The scripts are tricky, yeah... but you can always just edit the costumes - that's what I would do.  big_smile


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#12 2010-07-02 01:27:34

Blade-Edge
Scratcher
Registered: 2009-06-13
Posts: 1000+

Re: A Guide To A Simple Platformer

Chrischb wrote:

Blade-Edge wrote:

Chrischb wrote:

You can also use platforming bases - RHY3756547 has a good one that you can find here. Just edit the scripts, costumes, and maybe more, and you've got a platformer!  smile

That one's good, but he said simple  tongue
Of course, he would still be able to handle it, but editing the script itself would be way too challenging.

The scripts are tricky, yeah... but you can always just edit the costumes - that's what I would do.  big_smile

Hey, do you know whether Rhy used colour sensing in that project or just collision detection?


http://img29.imageshack.us/img29/5145/scratchycat.gif CLASSY

Offline

 

#13 2010-07-02 01:34:26

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: A Guide To A Simple Platformer

Blade-Edge wrote:

Chrischb wrote:

Blade-Edge wrote:


That one's good, but he said simple  tongue
Of course, he would still be able to handle it, but editing the script itself would be way too challenging.

The scripts are tricky, yeah... but you can always just edit the costumes - that's what I would do.  big_smile

Hey, do you know whether Rhy used colour sensing in that project or just collision detection?

Oops - I meant making a platformer by only changing the levels, not by changing the sensing type as well. ^_^


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#14 2010-07-02 05:13:31

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: A Guide To A Simple Platformer

Blade-Edge wrote:

Chrischb wrote:

Blade-Edge wrote:


That one's good, but he said simple  tongue
Of course, he would still be able to handle it, but editing the script itself would be way too challenging.

The scripts are tricky, yeah... but you can always just edit the costumes - that's what I would do.  big_smile

Hey, do you know whether Rhy used colour sensing in that project or just collision detection?

He used "advanced" collision detection. Let me quickly sum it up... (may be slightly inaccurate):
After moving, positions are checked, the sprite goes back if there's a collision.


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#15 2010-07-02 09:13:29

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: A Guide To A Simple Platformer

That's probably the most accurate way, though.

Offline

 

#16 2010-07-02 17:32:27

codyronaldcamp
Scratcher
Registered: 2009-12-26
Posts: 100+

Re: A Guide To A Simple Platformer

DaGamez wrote:

Leeee, it's actually like this to make it right:
[blocks]<when green flag clicked>
<forever>
<if>
<key[right arrow]pressed?>
<point in direction( 90 )>
<move( 3 )steps>[/blocks]



And the left arrow one is the same, except change direction from 90 to -90, and key left arrow pressed.

Remember, that was almost interrupting me because this is SIMPLE.
Also, if you want to be mean, get the blasting way OUT OF HERE.

Last edited by codyronaldcamp (2010-07-02 17:33:48)


http://i45.tinypic.com/332q9kz.png

Offline

 

#17 2010-07-02 17:39:39

Blade-Edge
Scratcher
Registered: 2009-06-13
Posts: 1000+

Re: A Guide To A Simple Platformer

juststickman wrote:

Blade-Edge wrote:

Chrischb wrote:


The scripts are tricky, yeah... but you can always just edit the costumes - that's what I would do.  big_smile

Hey, do you know whether Rhy used colour sensing in that project or just collision detection?

He used "advanced" collision detection. Let me quickly sum it up... (may be slightly inaccurate):
After moving, positions are checked, the sprite goes back if there's a collision.

Okay, so completely changing the sprites would be an available option then. Sounds good to me.
But adding attacks into that script would be tough.


http://img29.imageshack.us/img29/5145/scratchycat.gif CLASSY

Offline

 

#18 2010-07-03 18:08:44

codyronaldcamp
Scratcher
Registered: 2009-12-26
Posts: 100+

Re: A Guide To A Simple Platformer

Everyone, stop going off-topic.
This is simple.
I hate Scr--potatos!
EDIT 2: Looks like I was going into the past!

Last edited by codyronaldcamp (2010-07-04 15:15:01)


http://i45.tinypic.com/332q9kz.png

Offline

 

#19 2010-07-04 05:50:18

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: A Guide To A Simple Platformer

Blade-Edge wrote:

juststickman wrote:

Blade-Edge wrote:


Hey, do you know whether Rhy used colour sensing in that project or just collision detection?

He used "advanced" collision detection. Let me quickly sum it up... (may be slightly inaccurate):
After moving, positions are checked, the sprite goes back if there's a collision.

Okay, so completely changing the sprites would be an available option then. Sounds good to me.
But adding attacks into that script would be tough.

Nope  smile
I've added them, wanna see? It's actually pretty simple.
If only I could find my memory stick...


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

Board footer