Discuss Scratch

rui_mac
Scratcher
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.
little_kitten
Scratcher
500+ posts

Lock a sprite

Yes! Huge support!
I always accidentally move sprites and I'm so tired of it
rui_mac
Scratcher
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.
JonathanSchaffer
Scratcher
1000+ posts

Lock a sprite

support.
hello my old friend the 60-second rule
HexagonNoah
Scratcher
100+ posts

Lock a sprite

What if you don't have a mouse?
tiger75
Scratcher
100+ posts

Lock a sprite

HexagonNoah wrote:

What if you don't have a mouse?
If you're on a trackpad, then control-click, or command-click, if you're on an Apple device. I support the suggestion.

Last edited by tiger75 (March 26, 2016 14:34:02)

HexagonNoah
Scratcher
100+ posts

Lock a sprite

Support.
rui_mac
Scratcher
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
Scratcher
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:
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
Scratcher
1000+ posts

Lock a sprite

HexagonNoah wrote:

What if you don't have a mouse?
Impossible. The only way you 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)

IronBit_Studios
Scratcher
1000+ posts

Lock a sprite

Big support. This happens a lot.
rui_mac
Scratcher
61 posts

Lock a sprite

TheMonsterOfTheDeep wrote:

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.
Inreal49
Scratcher
100+ posts

Lock a sprite

Support, that happends to me all the time
pvz_pro
Scratcher
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
Scratcher
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
go to x: (...) y: (...) 
block as the first block of a
when this sprite clicked 
for 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
Scratcher
100+ posts

Lock a sprite

pvz_pro wrote:

no support because you can use this block
go to x: (0) y: (0)//it changes to the position of sprite

I think you dont get nothing…
DaSpudLord
Scratcher
1000+ posts

Lock a sprite

pvz_pro wrote:

no support because you can use this block
go to x: (0) y: (0)//it changes to the position of sprite
The point of this suggestion is to prevent sprites from moving…
ngnhc
Scratcher
100+ posts

Lock a sprite

Support.
This causes problems for me often. It makes it difficult to create and test dragging user interfaces.
Ninkancho
Scratcher
500+ posts

Lock a sprite

ngnhc wrote:

This causes problems for me often. It makes it difficult to create and test dragging user interfaces.
Have you tried running the editor in fullscreen? This prevents sprites from being drop-shadow-dragged in the “unlocked” manner.

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
Scratcher
100+ posts

Lock a sprite

TheMonsterOfTheDeep wrote:

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.
This is what I usually use

Powered by DjangoBB