Discuss Scratch

JarekJarek
New to Scratch
1 post

How to make player blocking when I jump on a block.

Hello everyone,
I made a simple script which block player when he touch a wall, but i don't know how to make a script which block player when he jump on a block.
Thank you for help!
Sorry for my bad English.

when green flag clicked
forever
if <key [d v] pressed?> then
change x by (10)
end
if <touching color [#b7d6d6] ?> then
change x by (-10)
end

Last edited by JarekJarek (July 2, 2017 11:33:34)

HoofEMP
Scratcher
100+ posts

How to make player blocking when I jump on a block.

Change your “touching color” boolean to this:
<<touching color [#b7d6d6]?> and <not <key [d v] pressed?>>>


asivi
Scratcher
1000+ posts

How to make player blocking when I jump on a block.

That @HoofEMP said(i think but not tested) or

when green flag clicked//not tested
forever
if <key [d v] pressed?> then
change x by (10)
if <touching color [#b7d6d6] ?> then
change x by (-10)
end
end

Last edited by asivi (July 2, 2017 12:58:15)

Powered by DjangoBB