Discuss Scratch

great_elmo
Scratcher
100+ posts

move up () steps

I want a block that looks like this.
move up () steps ::motion

what it does: it moves a sprite the amount of steps that is typed in, but the sprite will move UP the amount of steps you type in.

Last edited by great_elmo (July 28, 2019 18:56:16)


Recovering Scrstch user. Joining YT hopefully this year.

WindOctahedron
Scratcher
1000+ posts

move up () steps

change y by ()
See?

Last edited by WindOctahedron (July 28, 2019 18:56:23)


The message above may contain wrong information, rude remarks, or something embarrassing to my current self. In this case, please ignore it and remember that I likely wrote it back when I didn't know what “respect” truly meant. I really hate thinking about it again.
-Reshiram-
Scratcher
100+ posts

move up () steps

change y by ()

I am now @SquirreIstar with an i, as in “I used to be -Reshiram-”
openPoll
Scratcher
1000+ posts

move up () steps

WindOctahedron wrote:

change y by ()
See?

-Reshiram- wrote:

change y by ()
Yet we still have the move () steps block… which does the same as the change x by () block…
I don't think they are points that are THAT valid

Moi? Whaddya wahnt from moi?

——

Inactive Scratcher • making memes wen??? • define defineI have Robux >:)1,000+ hours on Splatoon 2 • 250+ hours on Pokémon White • 100+ hours on MinecraftAn 8 bit remix I love • i have lots game • too lazy to make rainbows • still a proud Windows 7 user
-Reshiram-
Scratcher
100+ posts

move up () steps

openPoll wrote:

WindOctahedron wrote:

change y by ()
See?

-Reshiram- wrote:

change y by ()
Yet we still have the move () steps block… which does the same as the change x by () block…
I don't think they are points that are THAT valid
move () steps
makes the sprite move (…) pixels in their current direction. It usually acts the same as
change x by ()
because you usually have your sprites set at 90 degrees.

I am now @SquirreIstar with an i, as in “I used to be -Reshiram-”
Sheep_maker
Scratcher
1000+ posts

move up () steps

How about this, then?
define move up (n) steps
turn ccw (90) degrees
move (n) steps
turn cw (90) degrees

move up (10) steps
I'd say this would make a perfect example of how a custom block can be used.

- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
-CodePro-
Scratcher
100+ posts

move up () steps

Sheep_maker wrote:

How about this, then?
define move up (n) steps
turn ccw (90) degrees
move (n) steps
turn cw (90) degrees

move up (10) steps
I'd say this would make a perfect example of how a custom block can be used.
That is a totally unnecessary workaround and that is assuming the sprite is facing right.
It's more like a move left block.
I think
change y by ()
works fine.

This is my signature, it appears below my every post. Want to change yours? Use the code below in your browsers console.
this.document.location = "https://scratch.mit.edu/discuss/settings/" + Scratch.INIT_DATA.LOGGED_IN_USER.model.username

The more you do now, the less you need to do later. - Me, and a bunch of other people saying it in slightly different ways.
--Explosion--
Scratcher
1000+ posts

move up () steps

great_elmo wrote:

I want a block that looks like this.
move up () steps ::motion

what it does: it moves a sprite the amount of steps that is typed in, but the sprite will move UP the amount of steps you type in.
Is this in relation to dorection or just the y position of the sprite? If it involves direction a workaround would be this:
Go to x: (x position ) + ((sin ((direction) + (90))*steps) y: (y position) + ((cos((direction) + (90)) * steps

Last edited by kaj (Tomorrow 00:00:00)
✰✩✭✴★--Explosion--★✴✭✩✰
Forum helper | boy | platformers | 14yrs | guitar | website


CW_school
Scratcher
46 posts

move up () steps

define move up (n) steps
change y by (n)

move up (10) steps

Simple workaround

This is my signature.
KoolKidz112
Scratcher
100+ posts

move up () steps

Support. Having an object move up regardless of direction would be nice.

oh
Truck11111
Scratcher
1000+ posts

move up () steps

No support, just use this block if you wanna go up,
change y by (10)
and edit it a bit if you wanna go down.
change y by (-10)

sufferin' succotash!
Za-Chary
Scratcher
1000+ posts

move up () steps

KoolKidz112 wrote:

Support. Having an object move up regardless of direction would be nice.
There already is a way to do this. As others have said, use this block:

change y by ()

This is my forum signature! On a forum post, it is okay for Scratchers to advertise in their forum signature. The signature is the stuff that shows up below the horizontal line on the post. It will show up on every post I make.

I was a Scratch Team member from May 10th 2019 to October 29th 2021.

my notebook | scratch team essay | accessibility essay
-Reshiram-
Scratcher
100+ posts

move up () steps

Za-Chary wrote:

KoolKidz112 wrote:

Support. Having an object move up regardless of direction would be nice.
There already is a way to do this. As others have said, use this block:

change y by ()
Hmm, but maybe the OP means go up steps based on their direction, like the
move () steps
block.

Sheep_maker wrote:

How about this, then?
define move up (n) steps
turn ccw (90) degrees
move (n) steps
turn cw (90) degrees

move up (10) steps
I'd say this would make a perfect example of how a custom block can be used.


I am now @SquirreIstar with an i, as in “I used to be -Reshiram-”
LuckyLucky7
Scratcher
1000+ posts

move up () steps

-Reshiram- wrote:

change y by ()

Sheep_maker wrote:

How about this, then?
define move up (n) steps
turn ccw (90) degrees
move (n) steps
turn cw (90) degrees

move up (10) steps
I'd say this would make a perfect example of how a custom block can be used.
No support since there are simple and easy workarounds(shown in the quotes above).

I have about 3450 posts, 90 shared projects, 180 total created/followed topics, and 425 followers.

WaterComesBack
Scratcher
100+ posts

move up () steps

No support. This is EXACTLY like the suggestion below me.

LuckyLucky7 wrote:

-Reshiram- wrote:

change y by ()

Sheep_maker wrote:

How about this, then?
define move up (n) steps
turn ccw (90) degrees
move (n) steps
turn cw (90) degrees

move up (10) steps
I'd say this would make a perfect example of how a custom block can be used.
No support since there are simple and easy workarounds(shown in the quotes above).
Both of these work for you, so please learn how to use change y blocks.

BA BUM BUM B U M
BA BUM BUM B U M
BA BUM BUM B U M
BA BUM BUM B U M
okay enough, welcome to my siggy. (press down+shift while highlighting a part of my signature to see the rest of my sig)
E

whoops sorry for the accidental e

h

h

h

stop viewing this

move (999999999) steps
move (999999) steps



ende
Nambaseking01
Scratcher
1000+ posts

move up () steps

No support.

The workarounds are really easy, so this block is not needed.

Hey there! My name is Nammy. I'm a male Forum Helper and Scratch Wiki Editor.
Profile | Test Account | Talk with me here! | Griffpatch is quitting Scratch?!

Powered by DjangoBB