## Discuss Scratch

just-a-grasshoper
Scratcher
28 posts

### how to make a platform you can jump on

i want to make one of those platforms where you can jump through them and land on them
the project
deck26
Scratcher
1000+ posts

### how to make a platform you can jump on

Project doesn't seem to be shared but I'd advise you to search for @griffpatch_tutor's platformer tutorial.
just-a-grasshoper
Scratcher
28 posts

it`s shared now
deck26
Scratcher
1000+ posts

### how to make a platform you can jump on

just-a-grasshoper wrote:

it`s shared now
just-a-grasshoper
Scratcher
28 posts

ok
Presentation657
Scratcher
37 posts

### how to make a platform you can jump on

`when green flag clickedif <touching color [#1a9ee0] ?> then change y by (0)  elsechange y by (-10)end`
AveryBrodyA
Scratcher
37 posts

### how to make a platform you can jump on

Presentation657 wrote:

`when green flag clickedif <touching color [#1a9ee0] ?> then change y by (0)  elsechange y by (-10)end`
he wants to jump up through the block and then land on top
AveryBrodyA
Scratcher
37 posts

### how to make a platform you can jump on

`when green flag clickedforeverif <touching [block v] ?> thenchange [times touched v] by (1)endif <(time touched) = [1]> then change y by (-5)elseif <(times touched) = [0]> thenchange x by (-5)endif <(times touched) = [2]> thenset [times touched v] to [0]endend`
probably will work
TromboneAndSaxophone
Scratcher
76 posts

### how to make a platform you can jump on

AveryBrodyA wrote:

`when green flag clickedforeverif <touching [block v] ?> thenchange [times touched v] by (1)endif <(time touched) = [1]> then change y by (-5)elseif <(times touched) = [0]> thenchange x by (-5)endif <(times touched) = [2]> thenset [times touched v] to [0]endend`
probably will work
It won't. It will just go down 5 pixels until it's not touching the sprite.

Last edited by TromboneAndSaxophone (Feb. 9, 2018 00:04:08)

just-a-grasshoper
Scratcher
28 posts

### how to make a platform you can jump on

thx guys
I`ll let you guys know when my project comes out