move () steps

From PenguinMod Wiki
Revision as of 09:38, 17 June 2024 by FlameyTheCreator (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Move () steps
Jump to navigation Jump to search

Images needed

This article needs images or better quality images. You can help PenguinMod Wiki by adding the images or uploading them.

move () steps
move () steps
Caption
Block Type Stack Block
Category / Extension Motion
Status Who tf uses status

The move () steps block is a Stack block and a Motion block. When used, it would move the sprite in a specified amount of steps to the direction the sprite's facing.

This block can be useful if you want the sprite to move to where ever you want without having to make complicated methods.

Workaround

There are two ways to make this block:

  • move back ((-1) * (...)) steps::motion
  • go to x: ((x position) + (([sin v] of (direction)) * (steps))) y: ((y position) + (([cos v] of (direction)) * (steps)))