Discuss Scratch

aieau
Scratcher
14 posts

trouble with collisions



I have made a project where you move around using the grey circles, and they are supposed to be visible on all white tiles, and hidden on green tiles. I did this using contact blocks (if contact between path and map sprite, delete path clone). However, the contact area seems to extend to the left, bottom and bottom left diagonal of the green tiles. I tried to make the grey path block smaller, but it still doesn't work. I'm guessing it has something to do with me using a scaled version of the map sprite, but I can't find anything about that.

project: https://scratch.mit.edu/projects/826729659/
mysinginmonsters
Scratcher
100+ posts

trouble with collisions

I debugged this for a long time! Looks like the movement clones will disappear even if they aren't touching the map. I have no clue.
aaron_gao
Scratcher
8 posts

trouble with collisions

aieau wrote:



I have made a project where you move around using the grey circles, and they are supposed to be visible on all white tiles, and hidden on green tiles. I did this using contact blocks (if contact between path and map sprite, delete path clone). However, the contact area seems to extend to the left, bottom and bottom left diagonal of the green tiles. I tried to make the grey path block smaller, but it still doesn't work. I'm guessing it has something to do with me using a scaled version of the map sprite, but I can't find anything about that.

project: https://scratch.mit.edu/projects/826729659/


this reminds me on somthing i found online
where you try to kill the enemy king but gravity gets in the way

Powered by DjangoBB