Motion: Difference between revisions

From PenguinMod Wiki
Jump to navigation Jump to search
Content added Content deleted
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 : () x2 : () y2 : ()?>]]
* [[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

Split

This article is a candidate for splitting into Motion and Motion. You can discuss this on the talk page.

Motion is a category that originated from Scratch that allows the control of sprite movement.

Scratch Blocks

PenguinMod Blocks

Expansion

Motion Expansion is an extension in PenguinMod.

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

ve 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)