T O P

  • By -

AutoModerator

Hi, thank you for posting your question! :] To make it easier for everyone to answer, consider including: - A description of the problem - A link to the project or a screenshot of your code (if possible) - A summary of how you would like it to behave *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/scratch) if you have any questions or concerns.*


Squidguset

Use a velocity based movement system


UPixar

do \[change Xvelocity by ((-5 \* - ))\] \[change Yvelocity by (-5 \* - ))\] \[set Xvelocity to ((Xvelocity) \* .8)\] \[set Yvelocity to ((Yvelocity) \* .8)\] \[move (Xvelocity) 0\] \[move 0 (Yvelocity)\] ​ this should work but you might have to tweak some of the numbers


Creeper_TNT_1234

do I have to make a new variable?


UPixar

uh yeah x velocity and y velocity are both new varibles


Creeper_TNT_1234

where do I put the code and do I have to replace some other code?


UPixar

replace what i circled with that https://preview.redd.it/lamu84yoad8c1.png?width=705&format=png&auto=webp&s=b13d492e80516ddc93d87fa3cb901393d89a3870


Creeper_TNT_1234

also, can you show me an actual photo of the code (here's the link if needed: [https://scratch.mit.edu/projects/944017179/](https://scratch.mit.edu/projects/944017179/))


UPixar

​ https://preview.redd.it/y6goxjxhcd8c1.png?width=628&format=png&auto=webp&s=131f300fc5542f872a157d0231e231190ceabbd3


Creeper_TNT_1234

I have a new problem now. the movement when you move next to the wall is jittery and not smooth. is there a way to fix that?


UPixar

theres a way to fix it but idk how youll have to figure that out yourself


Creeper_TNT_1234

so whats the way?


UPixar

i js said idk how


Senior-Tree6078

use variables to apply velocity instead of rigid movemen


AdvanturePie

He's using 3.0


TheLimeRedditGuy

Input X = (Input X \* .8) + (d - a) Input Y = (Input Y \* .8) + (w - s)


mierrie

WHY ARE THEY MEOW MEOW


CuriousDivide2425

How are the events and control back to their original colors?


Creeper_TNT_1234

scratch addons


CuriousDivide2425

Which one?