Motion: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
(→Comments: deleted) |
||
(12 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{Split|[[Motion]] and [[Motion Expansion]]}} |
|||
⚫ | |||
'''Motion''' is a category that originated from Scratch that allows the control of sprite movement. |
|||
==Scratch Blocks== |
|||
* [[move () steps|<scratchblocks>move (10) steps</scratchblocks>]] |
|||
* [[turn clockwise () degrees|<scratchblocks>turn cw (15) degrees</scratchblocks>]] |
|||
* [[turn counterclockwise () degrees|<scratchblocks>turn ccw (15) degrees</scratchblocks>]] |
|||
* [[go to ()|<scratchblocks>go to (random position v)</scratchblocks>]] |
|||
* [[go to x: () y: ()|<scratchblocks>go to x: (0) y: (0)</scratchblocks>]] |
|||
* [[glide () secs to ()|<scratchblocks>glide (1) secs to (random position v)</scratchblocks>]] |
|||
* [[glide () secs to x: () y: ()|<scratchblocks>glide (1) secs to x: (0) y: (0)</scratchblocks>]] |
|||
* [[point in direction ()|<scratchblocks>point in direction (90)</scratchblocks>]] |
|||
* [[point towards ()|<scratchblocks>point towards (mouse-pointer v)</scratchblocks>]] |
|||
* [[change x by ()|<scratchblocks>change x by (10)</scratchblocks>]] |
|||
* [[set x to ()|<scratchblocks>set x to (0)</scratchblocks>]] |
|||
* [[change y by ()|<scratchblocks>change y by (10)</scratchblocks>]] |
|||
* [[set y to ()|<scratchblocks>set y to (0)</scratchblocks>]] |
|||
* [[if on edge, bounce|<scratchblocks>if on edge, bounce</scratchblocks>]] |
|||
* [[set rotation style ()|<scratchblocks>set rotation style [left-right v]</scratchblocks>]] |
|||
* [[x position|<scratchblocks>(x position)</scratchblocks>]] |
|||
* [[y position|<scratchblocks>(y position)</scratchblocks>]] |
|||
* [[direction|<scratchblocks>(direction)</scratchblocks>]] |
|||
== PenguinMod Blocks == |
|||
* [[move back () steps|<scratchblocks>move back (10) steps::motion</scratchblocks>]] |
|||
* [[move () () steps|<scratchblocks>move [up v] (10) steps::motion</scratchblocks>]] |
|||
* [[change by x () y ()|<scratchblocks>change by x: (10) y: (10)::motion</scratchblocks>]] |
|||
* [[point towards x () y ()|<scratchblocks>point towards x: (0) y: (0)::motion</scratchblocks>]] |
|||
* [[turn around|<scratchblocks>turn around::motion</scratchblocks>]] |
|||
* [[if touching (), bounce|<scratchblocks>if touching (mouse-pointer v), bounce::motion</scratchblocks>]] |
|||
* [[move to stage ()|<scratchblocks>move to stage [bottom-left v]::motion</scratchblocks>]] |
|||
⚫ | |||
* [[Move back () steps]] |
|||
'''Motion Expansion''' is an extension in [[PenguinMod]]. |
|||
* [[Move () () steps]] |
|||
* [[set my home|<scratchblocks>set my home::motion</scratchblocks>]] |
|||
* [[Turn () degrees around () ()]] |
|||
* [[go to home|<scratchblocks>go to home::motion</scratchblocks>]] |
|||
* [[Change by 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: ()|<scratchblocks>move (10) % of the way to x: (0) y: (0)::motion</scratchblocks>]] |
|||
* [[Turn around]] |
|||
* [[turn clockwise () degrees around x: () y: ()|<scratchblocks>turn @turnRight (15) degrees around x: (0) y: (0)::motion</scratchblocks>]] |
|||
* [[If touching (), bounce]] |
|||
* [[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>]] |
|||
* [[Move to stage ()]] |
|||
* [[manually fence|<scratchblocks>manually fence::motion</scratchblocks>]] |
|||
* [[Rotation style|<scratchblocks>(rotation style::motion)</scratchblocks>]] |
|||
* [[Touching x: () y: ()?|<scratchblocks><touching x: (0) y: (0)?::motion></scratchblocks>]] |
|||
* [[Touching rectangle x1: () y1 : () x2 : () y2 : ()?|<scratchblocks><touching rectangle x1: (-100) y1: (-100) x2: (100) y2: (100)?::motion></scratchblocks>]] |
|||
==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 [https://github.com/PenguinMod/PenguinMod-Vm/blob/develop/src/blocks/scratch3_motion.js PenguinMod's Github]{{CategoriesNav}} |
|||
[[Category:Vanilla Categories]] |
Latest revision as of 01:28, 2 July 2024
Motion is a category that originated from Scratch that allows the control of sprite movement.
Scratch Blocks
move (10) steps
turn cw (15) degrees
turn ccw (15) degrees
go to (random position v)
go to x: (0) y: (0)
glide (1) secs to (random position v)
glide (1) secs to x: (0) y: (0)
point in direction (90)
point towards (mouse-pointer v)
change x by (10)
set x to (0)
change y by (10)
set y to (0)
if on edge, bounce
set rotation style [left-right v]
(x position)
(y position)
(direction)
PenguinMod Blocks
move back (10) steps::motion
move [up v] (10) steps::motion
change by x: (10) y: (10)::motion
point towards x: (0) y: (0)::motion
turn around::motion
if touching (mouse-pointer v), bounce::motion
move to stage [bottom-left v]::motion
Expansion
Motion Expansion is an extension in PenguinMod.
set my home::motion
go to home::motion
move (10) steps towards x: (0) y: (0)::motion
move (10) % of the way to x: (0) y: (0)::motion
turn @turnRight (15) degrees around x: (0) y: (0)::motion
turn @turnLeft (15) degrees around x: (0) y: (0)::motion
if touching x: (10) y: (10), bounce::motion
manually fence::motion
(rotation style::motion)
<touching x: (0) y: (0)?::motion>
<touching rectangle x1: (-100) y1: (-100) x2: (100) y2: (100)?::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 |