Discuss Scratch

cyp_AJ
New Scratcher
4 posts

How to fix a sprite's position?

Am trying to make a keyboard, where each piano key is a separate sprite.
But when you click on the sprite, it can move out of position.
In Scratch 2.0, wasn't there an option to make a sprite moveable or not? How do you achieve this in Scratch 3?
SimpleScratch
Scratcher
500+ posts

How to fix a sprite's position?

In the Sensing category there is a set drag mode block to control that
okkepiraatje
New Scratcher
4 posts

How to fix a sprite's position?

dgShe2]#68JU 0ug7 jzqlibyui7
DerpyHead0
Scratcher
1000+ posts

How to fix a sprite's position?

okkepiraatje wrote:

dgShe2]#68JU 0ug7 jzqlibyui7
please don't spam or necropost, this topic is more than a year old
escolovar
Teacher
1 post

How to fix a sprite's position?

EXEMPLE: xylophone, with 7 bars (from C to C up): in each key, i gave Y=0 and x= ????. I put inside “repeat forever” the blue block with the 2 coordenates. After, put the green flag. So, when u drag unvoluntary one key, she retuns imediatly to the original position. VERY EASY WAY.
medians
Scratcher
1000+ posts

How to fix a sprite's position?

escolovar wrote:

EXEMPLE: xylophone, with 7 bars (from C to C up): in each key, i gave Y=0 and x= ????. I put inside “repeat forever” the blue block with the 2 coordenates. After, put the green flag. So, when u drag unvoluntary one key, she retuns imediatly to the original position. VERY EASY WAY.
This was last posted on in 2020, and was already answered:

SimpleScratch wrote:

In the Sensing category there is a set drag mode block to control that
The can drag in player checkbox was replaced with this block.

Powered by DjangoBB