Discuss Scratch
- olivegranger
-
100+ posts
Lock a sprite
Support. This would be really useful for testing in the editor, i. e. I click a button and my mouse accidentally moves.
I do use this, but I'm so lazy I would rather have the lock option xD
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 do use this, but I'm so lazy I would rather have the lock option xD
Last edited by olivegranger (March 27, 2016 12:43:00)
- Inreal49
-
100+ 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.
omg you have reason
- ngnhc
-
100+ posts
Lock a sprite
I am aware of the full screen trick. However, sometimes I would want to be able modify scripts while testing it without having to constantly switch between the normal and full screen.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.
- Colecmac128
-
44 posts
Lock a sprite
On Apple trackpads you can click with two fingers to make a right-click. I think this a good idea, but probably not at the top of the Scratch team's list.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?
- banana439monkey
-
1000+ posts
Lock a sprite
Support! It's actually used in Sketchup. 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.
- A-no-meep
-
100+ posts
Lock a sprite
Support. While your variables should be initialized, accidentally dragging a sprite is still possible mid game in games with mouse control aspects.
- AlmondMiIk
-
11 posts
Lock a sprite
doesnt work 4 me so support no support because you can use this blockgo to x: (0) y: (0)//it changes to the position of sprite
- BlueStarPort
-
100+ posts
Lock a sprite
Support. This might fix some problems that stem from some people moving sprites.
- mtech22
-
1000+ posts
Lock a sprite
Support, because I frequently move sprites and it can get annoying because it messes up the game.
- MeIzAwezomeDede
-
1000+ posts
Lock a sprite
Although you can technically put any “movement” blocks inside of “if then” blocks and create a new variable, that workaround causes alot of clutter and unnecessary code… not even mentioning extra variable work for clones…
Support! it would be easy to use and user-friendly. I'd imagine it looking like this:
Support! it would be easy to use and user-friendly. I'd imagine it looking like this:
set movement lock [on v] :: #5571FE
Last edited by MeIzAwezomeDede (Oct. 9, 2020 16:42:16)
- mtech22
-
1000+ posts
Lock a sprite
Although you can technically put any “movement” blocks inside of “if then” blocks and create a new variable, that workaround causes alot of clutter…I think they mean a button next to a sprite, not a block.
Support! it would be easy to use and user-friendly. I'd imagine it looking like this:set movement lock [on v] :: #5571FE
- MeIzAwezomeDede
-
1000+ posts
Lock a sprite
Oh ok, but it would still work in block-form (I would assume)Although you can technically put any “movement” blocks inside of “if then” blocks and create a new variable, that workaround causes alot of clutter…I think they mean a button next to a sprite, not a block.
Support! it would be easy to use and user-friendly. I'd imagine it looking like this:set movement lock [on v] :: #5571FE
Edit: I misread the op, sorry.
Last edited by MeIzAwezomeDede (Oct. 9, 2020 16:45:06)
- TapingAnimations
-
1000+ posts
Lock a sprite
Support! I keep moving my sprites accidentally and it's very annoying and I see this as something very helpful for me and others!
- jweberTech-Harley
-
2 posts
Lock a sprite
I also would like to be able to lock a sprite in place. I'm creating a mousing tutorial and I want the player to move the solid shape to the outline shape, but they are K & 1st, with little/no moussing experience. they accidentally click on and move the desktop icons already, so I can see how they would accidentally move the outline which would mess up the sensing of when the shape is in the outline. This was from 2016 - so, any movement on this would-be-helpful feature?
Thanks,
Jeanne
Thanks,
Jeanne
- greenlit
-
20 posts
Lock a sprite
can someone make an editor mockup?
anyway here the block mockup:
anyway here the block mockup:
set lock of [movement v] of [sprite v] to [on v] ::motionthe sound ones wouldn't really be used but yeah you get it
set lock of [movement v] of [sprite v] to [off v] ::motion
set lock of [x movement v] of [sprite v] to [on v] ::motion
set lock of [y movement v] of [sprite v] to [on v] ::motion
set lock of [y movement v] of [this sprite v] to [on v] ::motion
set lock of [glide v] of [this sprite v] to [on v] ::motion
set lock of [rotation v] of [sprite v] to [on v] ::motion
set lock of [rotation v] of [other sprites v] to [on v] ::motion
set lock of [rotation v] of [all sprites v] to [on v] ::motion
set lock of [size v] of [sprite v] to [on v] ::looks
set lock of [size v] of [sprite v] to [off v] ::looks
set lock of [size v] of [this sprite v] to [off v] ::looks
set lock of [speech v] of [this sprite v] to [off v] ::looks
set lock of [effects v] of [this sprite v] to [off v] ::looks
set lock of [costume v] of [this sprite v] to [off v] ::looks
set lock of [layer v] of [this sprite v] to [off v] ::looks
set lock of effect [pitch v] of [sprite v] to [off v] ::sound
set lock of effect [volume v] of [sprite v] to [off v] ::sound
//etc