Motion: Difference between revisions

From PenguinMod Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
(→‎Comments: deleted)
 
(One intermediate revision by one other user 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|<scratchblocks>move () steps</scratchblocks>]]
* [[move () steps|<scratchblocks>move (10) steps</scratchblocks>]]
* [[turn clockwise () degrees|<scratchblocks>turn cw () degrees</scratchblocks>]]
* [[turn clockwise () degrees|<scratchblocks>turn cw (15) degrees</scratchblocks>]]
* [[turn counterclockwise () degrees|<scratchblocks>turn ccw () degrees</scratchblocks>]]
* [[turn counterclockwise () degrees|<scratchblocks>turn ccw (15) degrees</scratchblocks>]]
* [[go to ()|<scratchblocks>go to ( v)</scratchblocks>]]
* [[go to ()|<scratchblocks>go to (random position v)</scratchblocks>]]
* [[go to x: () y: ()|<scratchblocks>go to x: () y: ()</scratchblocks>]]
* [[go to x: () y: ()|<scratchblocks>go to x: (0) y: (0)</scratchblocks>]]
* [[glide () secs to ()|<scratchblocks>glide () secs to ( v)</scratchblocks>]]
* [[glide () secs to ()|<scratchblocks>glide (1) secs to (random position v)</scratchblocks>]]
* [[glide () secs to x: () y: ()|<scratchblocks>glide () secs to x: () y: ()</scratchblocks>]]
* [[glide () secs to x: () y: ()|<scratchblocks>glide (1) secs to x: (0) y: (0)</scratchblocks>]]
* [[point in direction ()|<scratchblocks>point in direction ()</scratchblocks>]]
* [[point in direction ()|<scratchblocks>point in direction (90)</scratchblocks>]]
* [[point towards ()|<scratchblocks>point towards ( v)</scratchblocks>]]
* [[point towards ()|<scratchblocks>point towards (mouse-pointer v)</scratchblocks>]]
* [[change x by ()|<scratchblocks>change x by ()</scratchblocks>]]
* [[change x by ()|<scratchblocks>change x by (10)</scratchblocks>]]
* [[set x to ()|<scratchblocks>set x to ()</scratchblocks>]]
* [[set x to ()|<scratchblocks>set x to (0)</scratchblocks>]]
* [[change y by ()|<scratchblocks>change y by ()</scratchblocks>]]
* [[change y by ()|<scratchblocks>change y by (10)</scratchblocks>]]
* [[set y to ()|<scratchblocks>set y to ()</scratchblocks>]]
* [[set y to ()|<scratchblocks>set y to (0)</scratchblocks>]]
* [[if on edge, bounce|<scratchblocks>if on edge, bounce</scratchblocks>]]
* [[if on edge, bounce|<scratchblocks>if on edge, bounce</scratchblocks>]]
* [[set rotation style ()|<scratchblocks>set rotation style [ v]</scratchblocks>]]
* [[set rotation style ()|<scratchblocks>set rotation style [left-right v]</scratchblocks>]]
* [[x position|<scratchblocks>(x position)</scratchblocks>]]
* [[x position|<scratchblocks>(x position)</scratchblocks>]]
* [[y position|<scratchblocks>(y position)</scratchblocks>]]
* [[y position|<scratchblocks>(y position)</scratchblocks>]]
* [[direction|<scratchblocks>(direction)</scratchblocks>]]
* [[direction|<scratchblocks>(direction)</scratchblocks>]]
== PenguinMod Blocks ==
== PenguinMod Blocks ==
* [[move back () steps|<scratchblocks>move back () steps::motion</scratchblocks>]]
* [[move back () steps|<scratchblocks>move back (10) steps::motion</scratchblocks>]]
* [[move () () steps|<scratchblocks>move [ v] () steps::motion</scratchblocks>]]
* [[move () () steps|<scratchblocks>move [up v] (10) steps::motion</scratchblocks>]]
* [[change by x () y ()|<scratchblocks>change by x: () y: ()::motion</scratchblocks>]]
* [[change by x () y ()|<scratchblocks>change by x: (10) y: (10)::motion</scratchblocks>]]
* [[point towards x () y ()|<scratchblocks>point towards x: () y: ()::motion</scratchblocks>]]
* [[point towards x () y ()|<scratchblocks>point towards x: (0) y: (0)::motion</scratchblocks>]]
* [[turn around|<scratchblocks>turn around::motion</scratchblocks>]]
* [[turn around|<scratchblocks>turn around::motion</scratchblocks>]]
* [[if touching (), bounce|<scratchblocks>if touching ( v), bounce::motion</scratchblocks>]]
* [[if touching (), bounce|<scratchblocks>if touching (mouse-pointer v), bounce::motion</scratchblocks>]]
* [[move to stage ()|<scratchblocks>move to stage [ v]::motion</scratchblocks>]]
* [[move to stage ()|<scratchblocks>move to stage [bottom-left v]::motion</scratchblocks>]]


=== Expansion ===
=== Expansion ===
Line 33: Line 33:
* [[set my home|<scratchblocks>set my home::motion</scratchblocks>]]
* [[set my home|<scratchblocks>set my home::motion</scratchblocks>]]
* [[go to home|<scratchblocks>go to home::motion</scratchblocks>]]
* [[go to home|<scratchblocks>go to home::motion</scratchblocks>]]
* [[move () steps towards x: () y: ()|<scratchblocks>move () steps towards x: () y: ()::motion</scratchblocks>]]
* [[move () steps towards x: () y: ()|<scratchblocks>move (10) steps towards x: (0) y: (0)::motion</scratchblocks>]]
* [[move () percent of the way to x: () y: ()|<scratchblocks>move () % of the way to x: () y: ()::motion</scratchblocks>]]
* [[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: ()|<scratchblocks>turn @turnRight () degrees around x: () y: ()::motion</scratchblocks>]]
* [[turn clockwise () degrees around x: () y: ()|<scratchblocks>turn @turnRight (15) degrees around x: (0) y: (0)::motion</scratchblocks>]]
* [[turn counterclockwise () degrees around x: () y: ()|<scratchblocks>turn @turnLeft () degrees around x: () y: ()::motion</scratchblocks>]]
* [[turn counterclockwise () degrees around x: () y: ()|<scratchblocks>turn @turnLeft (15) degrees around x: (0) y: (0)::motion</scratchblocks>]]
* [[if touching x: () y: (), bounce|<scratchblocks>if touching x: () y: (), bounce::motion</scratchblocks>]]
* [[if touching x: () y: (), bounce|<scratchblocks>if touching x: (10) y: (10), bounce::motion</scratchblocks>]]
* [[manually fence|<scratchblocks>manually fence::motion</scratchblocks>]]
* [[manually fence|<scratchblocks>manually fence::motion</scratchblocks>]]
* [[Rotation style|<scratchblocks>(rotation style::motion)</scratchblocks>]]
* [[Rotation style|<scratchblocks>(rotation style::motion)</scratchblocks>]]
* [[Touching x: () y: ()?|<scratchblocks><touching x: () y: ()?::motion></scratchblocks>]]
* [[Touching x: () y: ()?|<scratchblocks><touching x: (0) y: (0)?::motion></scratchblocks>]]
* [[Touching rectangle x1: () y1 : () x2 : () y2 : ()?|<scratchblocks><touching rectangle x1: () y1: () x2: () y2: ()?::motion></scratchblocks>]]
* [[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.
Line 48: Line 48:
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}}
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}}
[[Category:Vanilla Categories]]
[[Category:Vanilla Categories]]

== Comments ==
Penguin Mod<br />
(/¯'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