Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » need coding advice
- coder_kichu
- Scratcher
4 posts
need coding advice
can anyone tell me how to a sprite point towards the opposite direction in which the mouse pointer is located
- invalidaccess
- Scratcher
100+ posts
need coding advice
can anyone tell me how to a sprite point towards the opposite direction in which the mouse pointer is locatedhttps://scratch.mit.edu/projects/992206580/
check this out
and click see inside
- Intelligent684
- Scratcher
90 posts
need coding advice
What is your method two script supposed to even do…? I'm trying to wrap my head around it and I genuinely don't see much difference… Oh and your problem is that your second block says:
point towards ((dir) + (180))
~=~=~=~=~=~=~ Pay it forward <3 ~=~=~=~=~=~=~
If I helped, propose my project to be featured! Thanks!
- Intelligent684
- Scratcher
90 posts
need coding advice
take out the ‘+180’ and it will work. I tried it. Also, if you want the first one to work, take out the
turn cw (180) degrees
Last edited by Intelligent684 (March 30, 2024 11:55:42)
~=~=~=~=~=~=~ Pay it forward <3 ~=~=~=~=~=~=~
If I helped, propose my project to be featured! Thanks!
- invalidaccess
- Scratcher
100+ posts
need coding advice
both scripts are for same purpose and pretty much same .
which one you need to use depends on your project
however second one uses math stuf to find the direction
the first one uses scratch's point towards block
when you add 180 to your direction it points towards the opposite
that's it
which one you need to use depends on your project
however second one uses math stuf to find the direction
the first one uses scratch's point towards block
when you add 180 to your direction it points towards the opposite
that's it
Last edited by invalidaccess (March 30, 2024 12:01:30)
- invalidaccess
- Scratcher
100+ posts
need coding advice
im glad you find it helpful well, thank you, it helped me a lot!
- --Irrelevant
- Scratcher
90 posts
need coding advice
can anyone tell me how to a sprite point towards the opposite direction in which the mouse pointer is locatedhttps://scratch.mit.edu/projects/992206580/
check this out
and click see inside
Don't just send links to tutorial; explain to them how to code the script and help them.
I'm Irrelevant! (jk)
What I'm good at:
Creating evil kumquats
Creating more evil kumquats
Creating even more evil kumquats because why not?
GIMME YOUR FOLLOW
My profile…
- invalidaccess
- Scratcher
100+ posts
need coding advice
i didcan anyone tell me how to a sprite point towards the opposite direction in which the mouse pointer is locatedhttps://scratch.mit.edu/projects/992206580/
check this out
and click see inside
Don't just send links to tutorial; explain to them how to code the script and help them.
everthing's in the editor
- Discussion Forums
- » Help with Scripts
- » need coding advice