Discuss Scratch

Game_boyproductions
Scratcher
57 posts

How to add collision to this game

I am making a game, and I don't know how to get started in making collision for this kinda game, can someone help me out

Ex: https://scratch.mit.edu/projects/619007643/
bcs320jn
Scratcher
100+ posts

How to add collision to this game

Use this block!

<touching [ v] ?>
Game_boyproductions
Scratcher
57 posts

How to add collision to this game

bcs320jn wrote:

Use this block!

<touching [ v] ?>

I understand that i would have to use this, but I'm trying to figure out how to stop the player from going inside the collision and not get stuck in it.
fath11
Scratcher
100+ posts

How to add collision to this game

you can do this



to the player sprite if you want the sprite to detect colour just replace all

<touching [ v] ?>

with

<touching color [#fee48f] ?>

if you want both you can put

<<> or <>>

Last edited by fath11 (Dec. 19, 2021 04:26:07)

Game_boyproductions
Scratcher
57 posts

How to add collision to this game

fath11 wrote:

you can do this



to the player sprite if you want the sprite to detect colour just replace all

<touching [ v] ?>

with

<touching color [#fee48f] ?>

if you want both you can put

<<> or <>>

ty so much

Powered by DjangoBB