Discuss Scratch

delirium_2938
New to Scratch
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?

if <(username) = [delirium_2938]> then
next costume
end
Aftons_fan913
Scratcher
24 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

Scripts in forum helper and math and logic enjoyer
@greenFlag @delInput @addInput @turnLeft @turnRight @loopArrow :: #fdcfdc hat
About me

I have scratched for 7 years straight. No urge to do something to get popular. Friendly, I know Spanish (my native language) and English (and a bit of French). I like to program things I really like, not trends or things for contests.
EDIT: Yeah, I know it says I joined 4 years ago, but I scratched before going online.

Powered by DjangoBB