Discuss Scratch

jyetobi
Scratcher
5 posts

How do I move - velocity steps

Basically, when I touch the RightEdge, I intend for everything to move to the left by the velocity at which my main object is going, something like this


when I receive [ RightEdgeTouched]
move (- (velocity)) steps


Hopefully that worked and you can see it right but is there a way to do it similar to this?
PaperMarioFan2022
Scratcher
1000+ posts

How do I move - velocity steps

Gliding is an option, but I’m not that all advanced at coding, so I can’t be too sure.

glide () secs to x: (-1) y: (0)

Is this what you mean?

Last edited by PaperMarioFan2022 (June 6, 2023 02:24:38)


Welcome to my signature!

Profile | Ocular | ScratchStats | PostPercent | GitHub



I’ve been a Scratcher since 2021! / Griffpatcher/Forum since 2022.


Support the suggestion HERE by adding this button to your signature
medians
Scratcher
1000+ posts

How do I move - velocity steps

Do you mean in the opposite direction? If so, if the number inputted into the move steps block is negative, then it will move in the opposite direction.

hi875230163394: You're similar to valve in that you both hate a certain number…
Medians bamboozled by 3.0 (both projects back up): Original and https://scratch.mit.edu/projects/878470775/
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that

Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.

Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors
i trolled redcat LOL





if you see this
{what method did you use::control hat
answer on profile ::motion
} ::operators
;
k0d3rrr
Scratcher
1000+ posts

How do I move - velocity steps

All it takes is three blocks:
move ((velocity) * (-1)) steps

Fun fact: I typed this sentence with my eyes closed.
And now for some words of wisdom…
“Some numbers have tried to escape.” - Purple Guy
jyetobi
Scratcher
5 posts

How do I move - velocity steps

k0d3rrr wrote:

All it takes is three blocks

Thank you so much!


Last edited by jyetobi (June 6, 2023 02:31:05)

PaperMarioFan2022
Scratcher
1000+ posts

How do I move - velocity steps

Glad to hear that you found an answer! I’ll report to close this topic now.

Welcome to my signature!

Profile | Ocular | ScratchStats | PostPercent | GitHub



I’ve been a Scratcher since 2021! / Griffpatcher/Forum since 2022.


Support the suggestion HERE by adding this button to your signature

Powered by DjangoBB

Standard | Mobile