Discuss Scratch

Filliles
Scratcher
4 posts

How to make a trampoline

I am trying to make a trampoline for my platformer
Thor_Ham
Scratcher
11 posts

How to make a trampoline

when [ up] key pressed
if <touching [ trampoline] ?> then
change y by (normal jump+5)


else
change y by (normal jump)
end
Zero0111
Scratcher
100+ posts

How to make a trampoline

Filliles wrote:

I am trying to make a trampoline for my platformer
when green flag clicked
forever
if <touching color [color] ?> then
set [Y Velocity v] to [20]
broadcast [Touching v]
end
end
I used touching color because it makes it so you only jump higher when it's touching the top of the trampoline not like the side. But you can use touching (sprite) block as well.

Last edited by Zero0111 (Jan. 23, 2022 21:06:54)

Filliles
Scratcher
4 posts

How to make a trampoline

thank you

(

Zero0111 wrote:

Filliles wrote:

I am trying to make a trampoline for my platformer
when green flag clicked
forever
if <touching color [color] ?> then
set [Y Velocity v] to [20]
broadcast [Touching v]
end
end
I used touching color because it makes it so you only jump higher when it's touching the top of the trampoline not like the side. But you can use touching (sprite) block as well.
is there one for animated ones)

But can you do one for an animated one
Zero0111
Scratcher
100+ posts

How to make a trampoline

If you wanted the trampoline to be animated it's hard to make with scratchblocks in forums so here you can check this out and click “see inside” Trampoline

Powered by DjangoBB