Set my home: Difference between revisions

From PenguinMod Wiki
Set my home
Jump to navigation Jump to search
Content added Content deleted
No edit summary
(Added images)
 
Line 1: Line 1:
{{Needs Images|n=There is no image for the block itself or the workaround.}}
{{Blocks
{{Blocks
|block_type=Stack Block
|block_type=Stack Block
|category=[[Motion Expansion]]
|category=[[Motion Expansion]]
|title = set my home
|title = set my home
|block_img=Set my home.svg}}
}}
The '''set my home''' block is a stack block that stores sprite's position to be used in the [[go to home]] block. To get this block, one must add the [[Motion Expansion]] extension.
The '''set my home''' block is a stack block that stores sprite's position to be used in the [[go to home]] block. To get this block, one must add the [[Motion Expansion]] extension.
==Workaround==
==Workaround==
[[File:Set my home workaround.svg|thumb|174x174px]]
This block can be worked around by using variables or a list to store the current coordinate of a sprite, which can be used with the [https://en.scratch-wiki.info/wiki/Go_to_X:_()_Y:_()_(block) go to x: () y: ()] block to go back.
This block can be worked around by using variables or a list to store the current coordinate of a sprite, which can be used with the [https://en.scratch-wiki.info/wiki/Go_to_X:_()_Y:_()_(block) go to x: () y: ()] block to go back.
{{DISPLAYTITLE:set my home}}
{{DISPLAYTITLE:set my home}}

Latest revision as of 13:02, 6 June 2024

set my home
...
Caption
Block Type Stack Block
Category / Extension Motion
Status Who tf uses status

The set my home block is a stack block that stores sprite's position to be used in the go to home block. To get this block, one must add the Motion extension.

Workaround

This block can be worked around by using variables or a list to store the current coordinate of a sprite, which can be used with the go to x: () y: () block to go back.