Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » hey, quick question but
- Anic120
- Scratcher
17 posts
hey, quick question but
I've seen other games do it but how do you make a backdrop follow your mouse in a smooth way? like if you put your cursor in the corner, your backdrop will slightly follow?
- IceCreamTub
- Scratcher
1000+ posts
hey, quick question but
Should probably be in HELP WITH SCRIPTS, but whatever
The BACKDROP In Question is actually SPRITE btw
The BACKDROP In Question is actually SPRITE btw
when green flag clicked
set rotation style [Don't rotate v]
forever
go to x: (0) y: (0)
point towards [Mouse Pointer v]
move ((distance to [Mouse Pointer v])/[10]) steps // you can set it to be a higher number if you want it to be more subtle
end
- kiwilover2736
- Scratcher
1000+ posts
hey, quick question but
If the OP meant how to make the backdrop just gently move towards the mouse, then this code could be used: Should probably be in HELP WITH SCRIPTS, but whatever
The BACKDROP In Question is actually SPRITE btwwhen green flag clicked
set rotation style [Don't rotate v]
forever
go to x: (0) y: (0)
point towards [Mouse Pointer v]
move ((distance to [Mouse Pointer v])/[10]) steps // you can set it to be a higher number if you want it to be more subtle
end
(Yet again, the background has to be a sprite for this to be work.)
when green flag clicked
forever
go to x: ((mouse x) / (10)) y: ((mouse y) / (10)) //You can change the 10s to whatever number you'd like.
end
Last edited by kiwilover2736 (March 22, 2024 10:00:28)
⋆˖⁺‧₊☽ Just a person who helps in and cleans up the Discussion Forums! ☾₊‧⁺˖⋆
⋆˖⁺ I reached 1000 followers in January of 2024 and made an QNA. I'm now done with answering all the questions, and here's the project for it! ⁺˖⋆
⋆˖⁺ One of my projects was featured! :D Check it out here! ⁺˖⋆
⋆˖⁺ Murder Drones fan!⁺˖⋆
———————————————————————————————————————————————
RANDOM SCRATCHERS OUT OF CONTEXT :D
Za-Chary once said..
Could you remind us what scenes are in ScratchJr and what they do?After all, I If this gets rejected, add this to Za-Chary!AM the list of rejected suggestions.
And Paddle2See once said..
This is not a question for this forum. It's a question for your lawyer.
~Congrats! You found secret links. These are just random images that i might use.~
u.cubeupload.com/eason_9_lol/SxrJFv.png
u.cubeupload.com/eason_9_lol/Wf472Y.png
u.cubeupload.com/eason_9_lol/a8wDJ4.png
- Anic120
- Scratcher
17 posts
hey, quick question but
Here is a project that I've seen do it since the code does not work.
I can't really figure out how the project poster actually did it - but here.
https://scratch.mit.edu/projects/939317139
C&P if the link is not working.
I can't really figure out how the project poster actually did it - but here.
https://scratch.mit.edu/projects/939317139
C&P if the link is not working.
- --Irrelevant
- Scratcher
90 posts
hey, quick question but
Like a parallax?
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…
- Discussion Forums
- » Questions about Scratch
- » hey, quick question but