Motion: Difference between revisions

From PenguinMod Wiki
Jump to navigation Jump to search
Content added Content deleted
(New comments)
(→‎Comments: deleted)
 
(4 intermediate revisions by 2 users not shown)
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 (10) steps</scratchblocks>]]
* [[turn clockwise () degrees]]
* [[turn clockwise () degrees|<scratchblocks>turn cw (15) degrees</scratchblocks>]]
* [[turn counterclockwise () degrees]]
* [[turn counterclockwise () degrees|<scratchblocks>turn ccw (15) degrees</scratchblocks>]]
* [[go to ()|<scratchblocks>go to (random position v)</scratchblocks>]]
* [[go to ()]]
* [[go to x: () y: ()]]
* [[go to x: () y: ()|<scratchblocks>go to x: (0) y: (0)</scratchblocks>]]
* [[glide () secs to ()]]
* [[glide () secs to ()|<scratchblocks>glide (1) secs to (random position v)</scratchblocks>]]
* [[glide () secs to x: () y: ()]]
* [[glide () secs to x: () y: ()|<scratchblocks>glide (1) secs to x: (0) y: (0)</scratchblocks>]]
* [[point in direction ()]]
* [[point in direction ()|<scratchblocks>point in direction (90)</scratchblocks>]]
* [[point towards ()]]
* [[point towards ()|<scratchblocks>point towards (mouse-pointer v)</scratchblocks>]]
* [[change x by ()]]
* [[change x by ()|<scratchblocks>change x by (10)</scratchblocks>]]
* [[set x to ()]]
* [[set x to ()|<scratchblocks>set x to (0)</scratchblocks>]]
* [[change y by ()]]
* [[change y by ()|<scratchblocks>change y by (10)</scratchblocks>]]
* [[set y to ()]]
* [[set y to ()|<scratchblocks>set y to (0)</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 [left-right 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 (10) steps::motion</scratchblocks>]]
* [[move () () steps]]
* [[move () () steps|<scratchblocks>move [up v] (10) steps::motion</scratchblocks>]]
* [[change by x () y ()|<scratchblocks>change by x: (10) y: (10)::motion</scratchblocks>]]
* [[turn () degrees around () ()]]
* [[point towards x () y ()|<scratchblocks>point towards x: (0) y: (0)::motion</scratchblocks>]]
* [[change by x () y ()]]
* [[turn around|<scratchblocks>turn around::motion</scratchblocks>]]
* [[point towards x () y ()]]
* [[if touching (), bounce|<scratchblocks>if touching (mouse-pointer v), bounce::motion</scratchblocks>]]
* [[turn around]]
* [[move to stage ()|<scratchblocks>move to stage [bottom-left 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 (10) steps towards x: (0) y: (0)::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 (10) % of the way to x: (0) y: (0)::motion</scratchblocks>]]
* [[turn clockwise () degrees around x: () y: ()]]
* [[turn clockwise () degrees around x: () y: ()|<scratchblocks>turn @turnRight (15) degrees around x: (0) y: (0)::motion</scratchblocks>]]
* [[turn counterclockwise () degrees around x: () y: ()]]
* [[turn counterclockwise () degrees around x: () y: ()|<scratchblocks>turn @turnLeft (15) degrees around x: (0) y: (0)::motion</scratchblocks>]]
* [[if touching x: () y: (), bounce]]
* [[if touching x: () y: (), bounce|<scratchblocks>if touching x: (10) y: (10), 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: (0) y: (0)?::motion></scratchblocks>]]
* [[Touching rectangle x1: () y1 : () x2 : () y2 : ()?|<touching rectangle x1: () y1 : () x2 : () y2 : ()?>]]
* [[Touching rectangle x1: () y1 : () x2 : () y2 : ()?|<scratchblocks><touching rectangle x1: (-100) y1: (-100) x2: (100) y2: (100)?::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.
{{CategoriesNav}}
[[Category:Vanilla Categories]]


== Comments ==
== Motion JS-Code ==
The Javascript code for all motion blocks is open source and can be found on [https://github.com/PenguinMod/PenguinMod-Vm/blob/develop/src/blocks/scratch3_motion.js PenguinMod's Github]{{CategoriesNav}}
Penguin Mod<br />
[[Category:Vanilla Categories]]
(/¯'o')/¯ ¯\('o'¯\)
<br />-- [[User:Tymaster|Tymaster]] ([[User talk:Tymaster|talk]]) 04:34, 4 June 2024 (UTC)

Latest revision as of 01:28, 2 July 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