Discuss Scratch

MrFluffyPenguins
Scratcher
1000+ posts

how many pixels is a "step"?

move (10) steps
How many pixels is in a “step”?
gilbert_given_189
Scratcher
1000+ posts

how many pixels is a "step"?

1 pixel.
imfh
Scratcher
1000+ posts

how many pixels is a "step"?

1 pixel as in the stage is 240*2=480 pixels wide and 360 pixels high. It's possible the stage can be more pixels than that, but it draws as about 480x360 pixels.

point in direction (90 v) // To the right
move (10) steps // Change x by 10

change x by (10) // Same as the above
46009361
Scratcher
1000+ posts

how many pixels is a "step"?

Your definition of “step” means that it is one pixel wide.
WindOctahedron
Scratcher
1000+ posts

how many pixels is a "step"?

If you are talking about the total distance, then 1 step = 1 pixel.
If you are talking abot the changes of the x/y positions, here is how you calculate them:
Let direction be d.
x change = (sin d) × 10
y change = (cos d) × 10
Here's where I got this from.
-GentooPenguin-
Scratcher
100+ posts

how many pixels is a "step"?

The answer is 1 pixel.
SquirreIstar
Scratcher
1000+ posts

how many pixels is a "step"?

Know I'm late to the party, but it's one pixel in the direction that the sprite is facing.
tangox3
Scratcher
9 posts

how many pixels is a "step"?

Mr_PenguinAlex wrote:

move (10) steps
How many pixels is in a “step”?

1 pixel
--Explosion--
Scratcher
1000+ posts

how many pixels is a "step"?

WindOctahedron wrote:

If you are talking about the total distance, then 1 step = 1 pixel.
If you are talking abot the changes of the x/y positions, here is how you calculate them:
Let direction be d.
x change = (sin d) × 10
y change = (cos d) × 10
Here's where I got this from.
Yes,but this is for the specific example given where the sprite would move 10 steps, the best way is like this:
define move (#) steps
change x by ((([sin v] of (direction)))*(#))
change y by ((([cos v] of (direction)))*(#))
marioguy261
Scratcher
1 post

how many pixels is a "step"?

For A Tile Based Game
((480) / (32))
((360) / (32))

Powered by DjangoBB