Discuss Scratch

delirium_2938
New Scratcher
1 post

Wall Detection while moving with cursor

I'm currently making a project with an icon that follows your cursor. Can anyone show me how to let the icon bump into walls while still trying to follow the cursor?
Aftons_fan913
Scratcher
64 posts

Wall Detection while moving with cursor

I'm not sure. Could yu provide a link to the project? I might be able to help then. Otherwise, maybe try adding a kind of a script to stop movement when it touches the color of a wall.
BladiPetrov
Scratcher
100+ posts

Wall Detection while moving with cursor

Make it so in each frame, instead of teleporting to the mouse, it slowly moves (but in a single frame!!! use custom blocks!) through and if it touches a wall the follow ends

Powered by DjangoBB