Discuss Scratch
- rui_mac
-
61 posts
Lock a sprite
When pressing the right mouse button over a sprite in the Stage we should have an option to Lock/Unlock it.
When locked, it would not move manually.
I mean, it could still be possible to move it with the Blocks commands but not manually, with the mouse.
This would be very useful, when building the Stage with Sprites that should not be move by accident, like buttons, for example.
When locked, it would not move manually.
I mean, it could still be possible to move it with the Blocks commands but not manually, with the mouse.
This would be very useful, when building the Stage with Sprites that should not be move by accident, like buttons, for example.
- little_kitten
-
500+ posts
Lock a sprite
Yes! Huge support!
I always accidentally move sprites and I'm so tired of it
I always accidentally move sprites and I'm so tired of it

- rui_mac
-
61 posts
Lock a sprite
Me too. Mainly because I don't use a mouse. I use a wacom pen and that makes it so much easier to move a sprite, by accident.
- tiger75
-
100+ posts
Lock a sprite
If you're on a trackpad, then control-click, or command-click, if you're on an Apple device. I support the suggestion. What if you don't have a mouse?
Last edited by tiger75 (March 26, 2016 14:34:02)
- rui_mac
-
61 posts
Lock a sprite
The Lock/Unlock of a Sprite in the Stage would be useful, no matter if you use a mouse, a touchpad or a pen.
- TheMonsterOfTheDeep
-
1000+ posts
Lock a sprite
Something that might help:
If you have a sprite positioned where you want it, open the “Movement” tab, and this block:
As it is, I normally like to position a sprite using that block under a green flag clicked block, because it's always a good idea to initialize variables - it's just good practice.
If you have a sprite positioned where you want it, open the “Movement” tab, and this block:
go to x: () y: ()will have the sprite's current position. If you drag that block out, and then accidentally move the sprite, you can just click that block to reset its position.
As it is, I normally like to position a sprite using that block under a green flag clicked block, because it's always a good idea to initialize variables - it's just good practice.
- DaSpudLord
-
1000+ posts
Lock a sprite
Impossible. The only way you What if you don't have a mouse?might not have a mouse is if you were using a touchscreen, since trackpads, trackballs, etc are all used to control mouse-pointers. And even touchscreens kinda do have a mouse, it's just invisible. This mouse is stationary when you are not touching the screen, and rests at the last place you touched the screen. The next time you tap the screen, the mouse moves there.
I support. I also support “lock all” and “unlock all” options. This would be very useful for testing a project in the editor, because quite commonly when I click on a sprite while in the editor, I accidentally move it a bit, and it's annoying to have to put it back by dragging out a go to block.
Last edited by DaSpudLord (March 26, 2016 17:52:21)
- rui_mac
-
61 posts
Lock a sprite
Something that might help:
If you have a sprite positioned where you want it, open the “Movement” tab, and this block:go to x: () y: ()will have the sprite's current position. If you drag that block out, and then accidentally move the sprite, you can just click that block to reset its position.
As it is, I normally like to position a sprite using that block under a green flag clicked block, because it's always a good idea to initialize variables - it's just good practice.
I use that method. But why must I travel back and forth between the Stage and the Script area just to reset a position that I, inadvertently, changed?
Once the Sprite is set in a place and I don't want to move it, I would simply lock it.
- pvz_pro
-
500+ posts
Lock a sprite
no support because you can use this block
go to x: (0) y: (0)//it changes to the position of sprite
- rui_mac
-
61 posts
Lock a sprite
80% of the time that I click on a Sprite in de Stage, it moves a bit.
That is really annoying for Sprites that are buttons.
That forces me to add a
It would be much more elegant and easier if we could lock the Sprites.
That is really annoying for Sprites that are buttons.
That forces me to add a
go to x: (...) y: (...)block as the first block of a
when this sprite clickedfor all Sprites that should not move, when I'm developing and testing.
It would be much more elegant and easier if we could lock the Sprites.
Last edited by rui_mac (March 26, 2016 21:57:07)
- Inreal49
-
100+ posts
Lock a sprite
no support because you can use this blockgo to x: (0) y: (0)//it changes to the position of sprite
I think you dont get nothing…
- DaSpudLord
-
1000+ posts
Lock a sprite
The point of this suggestion is to prevent sprites from moving… no support because you can use this blockgo to x: (0) y: (0)//it changes to the position of sprite
- ngnhc
-
100+ posts
Lock a sprite
Support.
This causes problems for me often. It makes it difficult to create and test dragging user interfaces.
This causes problems for me often. It makes it difficult to create and test dragging user interfaces.
- Ninkancho
-
500+ posts
Lock a sprite
Have you tried running the editor in fullscreen? This prevents sprites from being drop-shadow-dragged in the “unlocked” manner. This causes problems for me often. It makes it difficult to create and test dragging user interfaces.
Anyway, support. I hate having to add worthless {go to x: () y: ()}s just in case I accidentally drag a sprite. An icon for this in the sprite info would also be great.
- SkyShine
-
100+ posts
Lock a sprite
This is what I usually use Something that might help:
If you have a sprite positioned where you want it, open the “Movement” tab, and this block:go to x: () y: ()will have the sprite's current position. If you drag that block out, and then accidentally move the sprite, you can just click that block to reset its position.
As it is, I normally like to position a sprite using that block under a green flag clicked block, because it's always a good idea to initialize variables - it's just good practice.