Discuss Scratch

AthanT
Scratcher
15 posts

Platformer Floating Block Detection

I am currently working on my platformer, https://scratch.mit.edu/projects/138026097/#editor . It is still in the early stage, I am working on trying to get the sprite block to not be able to pass through any blocks of the grey color I have set. I am able to move on them, which is fine, I am able to go below them and jump up and through them. How do I stop this? yes I have tried
<touching color [#1196b6] ?>
but It only does so much. I have the background moving which is a sprite. How would I do so?
Despicable_Dad
Scratcher
500+ posts

Platformer Floating Block Detection

This came up on the forum recently. I made a solution… maybe it'll be suitable for you.
https://scratch.mit.edu/projects/140151962/

Edit: Here's the previous discussion, in case it's any use. https://scratch.mit.edu/discuss/topic/235243/

Last edited by Despicable_Dad (Jan. 26, 2017 17:36:19)





I'm a Scratch Wiki contributor, and always keen to know which bits of the wiki are unclear. If I can, I'll try to improve things; otherwise, I'll make sure it's brought to the attention of someone who actually knows what they're talking about.
if <not <touching color [#3d4fe4] ?>> then
return true anyway cos computers are vague, innit
change [scratchFoibles v] by (1)
end
if <[a] = [A]> then
think [What???]
change [scratchFoibles v] by (1)
end



AthanT
Scratcher
15 posts

Platformer Floating Block Detection

I figured it out, I just needed my background to be transparent thanks

Last edited by AthanT (Jan. 26, 2017 17:48:46)

Despicable_Dad
Scratcher
500+ posts

Platformer Floating Block Detection

Last edited by Despicable_Dad (Jan. 26, 2017 17:54:41)





I'm a Scratch Wiki contributor, and always keen to know which bits of the wiki are unclear. If I can, I'll try to improve things; otherwise, I'll make sure it's brought to the attention of someone who actually knows what they're talking about.
if <not <touching color [#3d4fe4] ?>> then
return true anyway cos computers are vague, innit
change [scratchFoibles v] by (1)
end
if <[a] = [A]> then
think [What???]
change [scratchFoibles v] by (1)
end



Powered by DjangoBB