go to home

From PenguinMod Wiki (Official)
Revision as of 15:23, 25 August 2024 by MediansSC (talk | contribs)

Go to home
Jump to navigation Jump to search


The go to home block is a stack block that goes to the position set by the set my home::motion 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 (to replicate the set my home::motion block), which can be used with the go to x: () y: () block to go back to replicate this block.

// save the home position
set [home X v] to (x position)
set [home Y v] to (y position)

// go to home
go to x: (home X) y: (home Y)