I'm making a game where the characters can jump from one platform to another and I can't figure out how to make the blocks (which are white) solid to jump on. Please help. If you can use scratch blocks
Offline
I'm really stuck please help!
Offline
Do you know what a sensor is? Check out jnb6355's sensor tutorial if you don't. Here's a way to use sensors. Let's say left sensor is red, right blue, up green, and down purple.
When [right arrow v] key pressed if <not <color [#000056] touching color [#ffffff]>> move [10] steps end When [left arrow v] key pressed if <not <color [#e00707] touching color [#ffffff]>> move [-10] steps end When [up arrow v] key pressed if <not <color [#4ac925] touching color [#ffffff]>> change y by [10] wait [0.25] secs repeat until <color [#5d2892] toucing color [#ffffff]> change y by [-2] end endI might have done something wrong there...but that should hopefully help.
Offline
Maltese_Falcon wrote:
Do you know what a sensor is? Check out jnb6355's sensor tutorial if you don't. Here's a way to use sensors. Let's say left sensor is red, right blue, up green, and down purple.
When [right arrow v] key pressed if <not <color [#000056] touching color [#ffffff]>> move [10] steps end When [left arrow v] key pressed if <not <color [#e00707] touching color [#ffffff]>> move [-10] steps end When [up arrow v] key pressed if <<not <color [#4ac925] touching color [#ffffff]> and <color [#5d2892] touching color [#ffffff] change y by [10] wait [0.25] secs repeat until <color [#5d2892] touching color [#ffffff]> change y by [-2] end endI might have done something wrong there...but that should hopefully help.
Fixed something with the up arrow.
Offline
Maltese_Falcon wrote:
Maltese_Falcon wrote:
Do you know what a sensor is? Check out jnb6355's sensor tutorial if you don't. Here's a way to use sensors. Let's say left sensor is red, right blue, up green, and down purple.
When [right arrow v] key pressed if <not <color [#000056] touching color [#ffffff]>> move [10] steps end When [left arrow v] key pressed if <not <color [#e00707] touching color [#ffffff]>> move [-10] steps end When [up arrow v] key pressed if <<not <color [#4ac925] touching color [#ffffff]> and <color [#5d2892] touching color [#ffffff]>> change y by [10] wait [0.25] secs repeat until <color [#5d2892] touching color [#ffffff]> change y by [-2] end endI might have done something wrong there...but that should hopefully help.Fixed something with the up arrow.
Offline
Maltese_Falcon wrote:
Maltese_Falcon wrote:
Maltese_Falcon wrote:
Do you know what a sensor is? Check out jnb6355's sensor tutorial if you don't. Here's a way to use sensors. Let's say left sensor is red, right blue, up green, and down purple.
When [right arrow v] key pressed if <not <color [#000056] touching color [#ffffff]>> move [10] steps end When [left arrow v] key pressed if <not <color [#e00707] touching color [#ffffff]>> move [-10] steps end When [up arrow v] key pressed if <<not <color [#4ac925] touching color [#ffffff]>> and <color [#5d2892] touching color [#ffffff]>> change y by [10] wait [0.25] secs repeat until <color [#5d2892] touching color [#ffffff]> change y by [-2] end endI might have done something wrong there...but that should hopefully help.Fixed something with the up arrow.
I hope that fixed it! come on!
Offline
if
not touching colour white
change y by -3
Offline
I think this thread should go in the Help w/ Scripts forum.
Offline