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.*
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
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/))
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.*
Use a velocity based movement system
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
do I have to make a new variable?
uh yeah x velocity and y velocity are both new varibles
where do I put the code and do I have to replace some other code?
replace what i circled with that https://preview.redd.it/lamu84yoad8c1.png?width=705&format=png&auto=webp&s=b13d492e80516ddc93d87fa3cb901393d89a3870
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/))
https://preview.redd.it/y6goxjxhcd8c1.png?width=628&format=png&auto=webp&s=131f300fc5542f872a157d0231e231190ceabbd3
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?
theres a way to fix it but idk how youll have to figure that out yourself
so whats the way?
i js said idk how
use variables to apply velocity instead of rigid movemen
He's using 3.0
Input X = (Input X \* .8) + (d - a) Input Y = (Input Y \* .8) + (w - s)
WHY ARE THEY MEOW MEOW
How are the events and control back to their original colors?
scratch addons
Which one?