Go to (): Difference between revisions

From PenguinMod Wiki
Go to ()
Jump to navigation Jump to search
Content added Content deleted
(Created page with "{{Needs Images}} {{Infobox Block |block_img = |block_type = Stack Block |category = Motion |title = go to () }} The '''go to ()''' block is a stack block that goes to a specified sprite, the mouse-pointer, or a random position. It originates from Scratch. The default selected option is "random position". ==Workaround== ===Sprite=== The sprite option can be worked around by using the () of () sensing block and the go to x: () y: () block, wi...")
 
No edit summary
 
Line 1: Line 1:
{{Needs Images}}
{{Infobox Block
{{Infobox Block
|block_name = go to (random position v)
|block_img =
|block_type = Stack Block
|block_type = Stack Block
|category = [[Motion]]
|category = [[Motion]]
Line 9: Line 8:
==Workaround==
==Workaround==
===Sprite===
===Sprite===
The sprite option can be worked around by using the [[() of () (Sensing)|() of ()]] sensing block and the [[go to x: () y: ()]] block, with the x position of the sprite going in the first input, and the y position of the sprite going in the second input.
The option for sprites can be worked around by using the [[() of () (Sensing)|() of ()]] sensing block and the [[go to x: () y: ()]] block, with the x position of the sprite going in the first input, and the y position of the sprite going in the second input:
<sb>go to x: ([x position v] of (sprite v)) y: ([y position v] of (sprite v))</sb>
===Mouse-Pointer===
===Mouse-Pointer===
The mouse-pointer option can be worked around by using the [[mouse x]] and [[mouse y]] blocks in the [[go to x: () y: ()]] block, with mouse x going in the first input, and mouse y going in the other input.
The mouse-pointer option can be worked around by using the [[mouse x]] and [[mouse y]] blocks in the [[go to x: () y: ()]] block, with mouse x going in the first input, and mouse y going in the other input:<br>
<sb>go to x: (mouse x) y: (mouse y)</sb>
===Random Position===
===Random Position===
The random position block can be worked around by using [[pick random () to ()]] blocks in the [[go to x: () y: ()]] block.
The random position block can be worked around by using [[pick random () to ()]] blocks in the [[go to x: () y: ()]] block.

Latest revision as of 17:45, 1 July 2024

go to ()
go to (random position v)
Caption
Block Type Stack Block
Category / Extension Motion
Status Who tf uses status

The go to () block is a stack block that goes to a specified sprite, the mouse-pointer, or a random position. It originates from Scratch. The default selected option is "random position".

Workaround

Sprite

The option for sprites can be worked around by using the () of () sensing block and the go to x: () y: () block, with the x position of the sprite going in the first input, and the y position of the sprite going in the second input: go to x: ([x position v] of (sprite v)) y: ([y position v] of (sprite v))

Mouse-Pointer

The mouse-pointer option can be worked around by using the mouse x and mouse y blocks in the go to x: () y: () block, with mouse x going in the first input, and mouse y going in the other input:
go to x: (mouse x) y: (mouse y)

Random Position

The random position block can be worked around by using pick random () to () blocks in the go to x: () y: () block.