Motion: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
Ninja 6734 (talk | contribs) m (added information about the vm's JS-Code for the Motion category) |
No edit summary |
||
Line 2: | Line 2: | ||
'''Motion''' is a category that originated from Scratch that allows the control of sprite movement. |
'''Motion''' is a category that originated from Scratch that allows the control of sprite movement. |
||
==Scratch Blocks== |
==Scratch Blocks== |
||
* [[move () steps]] |
* [[move () steps|<scratchblocks>move () steps</scratchblocks>]] |
||
* [[turn clockwise () degrees]] |
* [[turn clockwise () degrees|<scratchblocks>turn cw () degrees</scratchblocks>]] |
||
* [[turn counterclockwise () degrees]] |
* [[turn counterclockwise () degrees|<scratchblocks>turn ccw () degrees</scratchblocks>]] |
||
* [[go to ()]] |
* [[go to ()|<scratchblocks>go to ( v)</scratchblocks>]] |
||
* [[go to x: () y: ()]] |
* [[go to x: () y: ()|<scratchblocks>go to x: () y: ()</scratchblocks>]] |
||
* [[glide () secs to ()]] |
* [[glide () secs to ()|<scratchblocks>glide () secs to ( v)</scratchblocks>]] |
||
* [[glide () secs to x: () y: ()]] |
* [[glide () secs to x: () y: ()|<scratchblocks>glide () secs to x: () y: ()</scratchblocks>]] |
||
* [[point in direction ()]] |
* [[point in direction ()|<scratchblocks>point in direction ()</scratchblocks>]] |
||
* [[point towards ()]] |
* [[point towards ()|<scratchblocks>point towards ( v)</scratchblocks>]] |
||
* [[change x by ()]] |
* [[change x by ()|<scratchblocks>cchange x by ()</scratchblocks>]] |
||
* [[set x to ()]] |
* [[set x to ()|<scratchblocks>set x to ()</scratchblocks>]] |
||
* [[change y by ()]] |
* [[change y by ()|<scratchblocks>change y by ()</scratchblocks>]] |
||
* [[set y to ()]] |
* [[set y to ()|<scratchblocks>set y to ()</scratchblocks>]] |
||
* [[if on edge, bounce]] |
* [[if on edge, bounce|<scratchblocks>if on edge, bounce</scratchblocks>]] |
||
* [[set rotation style ()]] |
* [[set rotation style ()|<scratchblocks>set rotation style [ v]</scratchblocks>]] |
||
* [[x position]] |
* [[x position|<scratchblocks>(x position)</scratchblocks>]] |
||
* [[y position]] |
* [[y position|<scratchblocks>(y position)</scratchblocks>]] |
||
* [[direction]] |
* [[direction|<scratchblocks>(direction)</scratchblocks>]] |
||
== PenguinMod Blocks == |
== PenguinMod Blocks == |
||
* [[move back () steps]] |
* [[move back () steps|<scratchblocks>move back () steps::motion</scratchblocks>]] |
||
* [[move () () steps]] |
* [[move () () steps|<scratchblocks>move [ v] () steps::motion</scratchblocks>]] |
||
* [[change by x () y ()|<scratchblocks>change by x: () y: ()::motion</scratchblocks>]] |
|||
* [[turn () degrees around () ()]] |
|||
* [[point towards x () y ()|<scratchblocks>point towards x: () y: ()</scratchblocks>]] |
|||
* [[change by x () y ()]] |
|||
* [[turn around|<scratchblocks>turn around::motion</scratchblocks>]] |
|||
* [[point towards x () y ()]] |
|||
* [[if touching (), bounce|<scratchblocks>if touching ( v), bounce::motion</scratchblocks>]] |
|||
* [[turn around]] |
|||
* [[move to stage ()|<scratchblocks>move to stage [ v]::motion</scratchblocks>]] |
|||
* [[if touching (), bounce]] |
|||
* [[if touching x () y (), bounce]] |
|||
* [[move to stage ()]] |
|||
=== Expansion === |
=== Expansion === |
||
'''Motion Expansion''' is an extension in [[PenguinMod]]. |
'''Motion Expansion''' is an extension in [[PenguinMod]]. |
||
* [[set my home]] |
* [[set my home|<scratchblocks>set my home::motion</scratchblocks>]] |
||
* [[go to home]] |
* [[go to home|<scratchblocks>go to home::motion</scratchblocks>]] |
||
* [[move () steps towards x: () y: ()]] |
* [[move () steps towards x: () y: ()|<scratchblocks>move () steps towards x: () y: ()::motion</scratchblocks>]] |
||
* [[move () percent of the way to x: () y: ()|move () % of the way to x: () y: ()]] |
* [[move () percent of the way to x: () y: ()|<scratchblocks>move () % of the way to x: () y: ()::motion</scratchblocks>]] |
||
* [[turn clockwise () degrees around x: () y: ()]] |
* [[turn clockwise () degrees around x: () y: ()|<scratchblocks>turn @turnRight () degrees around x: () y: ()::motion</scratchblocks>]] |
||
* [[turn counterclockwise () degrees around x: () y: ()]] |
* [[turn counterclockwise () degrees around x: () y: ()|<scratchblocks>turn @turnLeft () degrees around x: () y: ()::motion</scratchblocks>]] |
||
* [[if touching x: () y: (), bounce]] |
* [[if touching x: () y: (), bounce|<scratchblocks>if touching x: () y: (), bounce::motion</scratchblocks>]] |
||
* [[manually fence]] |
* [[manually fence|<scratchblocks>manually fence::motion</scratchblocks>]] |
||
* [[Rotation style|(rotation style)]] |
* [[Rotation style|<scratchblocks>(rotation style::motion)</scratchblocks>]] |
||
* [[Touching x: () y: ()?|<touching x: () y: ()?>]] |
* [[Touching x: () y: ()?|<scratchblocks><touching x: () y: ()?::motion></scratchblocks>]] |
||
* [[Touching rectangle x1: () y1 : () x2 : () y2 : ()?|<touching rectangle x1: () y1 |
* [[Touching rectangle x1: () y1 : () x2 : () y2 : ()?|<scratchblocks><touching rectangle x1: () y1: () x2: () y2: ()?::motion></scratchblocks>]] |
||
==Trivia== |
==Trivia== |
||
*Like in Scratch, no motion blocks are accessible through the Stage without tricks. |
*Like in Scratch, no motion blocks are accessible through the Stage without tricks. |
Revision as of 04:26, 17 June 2024
Motion is a category that originated from Scratch that allows the control of sprite movement.
Scratch Blocks
move () steps
turn cw () degrees
turn ccw () degrees
go to ( v)
go to x: () y: ()
glide () secs to ( v)
glide () secs to x: () y: ()
point in direction ()
point towards ( v)
cchange x by ()
set x to ()
change y by ()
set y to ()
if on edge, bounce
set rotation style [ v]
(x position)
(y position)
(direction)
PenguinMod Blocks
move back () steps::motion
move [ v] () steps::motion
change by x: () y: ()::motion
point towards x: () y: ()
turn around::motion
if touching ( v), bounce::motion
move to stage [ v]::motion
Expansion
Motion Expansion is an extension in PenguinMod.
set my home::motion
go to home::motion
move () steps towards x: () y: ()::motion
move () % of the way to x: () y: ()::motion
turn @turnRight () degrees around x: () y: ()::motion
turn @turnLeft () degrees around x: () y: ()::motion
if touching x: () y: (), bounce::motion
manually fence::motion
(rotation style::motion)
<touching x: () y: ()?::motion>
<touching rectangle x1: () y1: () x2: () y2: ()?::motion>
Trivia
- Like in Scratch, no motion blocks are accessible through the Stage without tricks.
Motion JS-Code
The Javascript code for all motion blocks is open source and can be found on PenguinMod's Github
v • e Categories Nav | |
---|---|
Vanilla | Motion · Looks · Sound · Variables (Variables · Lists) · Events · Control · Sensing · Operators · My Blocks |
Comments
Penguin Mod
(/¯'o')/¯ ¯\('o'¯\)
-- Tymaster (talk) 04:34, 4 June 2024 (UTC)