Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Minor Gravity problem
- s8913844
-
22 posts
Minor Gravity problem
Script:
so yeah I have a minor bug.
When jumping, Characters go though the floor. (Sometimes)
also they go though walls.
https://imageshack.com/i/pn5gn9Ngp
Am I doing something wrong?
so yeah I have a minor bug.
When jumping, Characters go though the floor. (Sometimes)
also they go though walls.
https://imageshack.com/i/pn5gn9Ngp
Am I doing something wrong?

Last edited by s8913844 (Aug. 12, 2021 00:12:17)
- Paddle2See
-
1000+ posts
Minor Gravity problem
Please don't use link shorteners on Scratch - we prefer to see easily where the link goes 

- Yusei-Fudo
-
1000+ posts
Minor Gravity problem
What is a link shortener?? Please don't use link shorteners on Scratch
Also, I'll need the project link for this.
- Tetris3DS
-
500+ posts
Minor Gravity problem
like bit.lyWhat is a link shortener?? Please don't use link shorteners on Scratch
Also, I'll need the project link for this.
- Thingied
-
1000+ posts
Minor Gravity problem
A link shortener is basically something that makes a short link to redirect to something else.What is a link shortener?? Please don't use link shorteners on Scratch
Last edited by Thingied (Aug. 11, 2021 23:54:48)
- s8913844
-
22 posts
Minor Gravity problem
Ok then. https://scratch.mit.edu/projects/557912162/like bit.lyWhat is a link shortener?? Please don't use link shorteners on Scratch
Also, I'll need the project link for this.
- Naoderi
-
16 posts
Minor Gravity problem
Use an Old x and Old y then instead:
when green flag clicked
set [OLD X v] to (x position)
set [OLD Y v] to (y position)
forever
if <touching [the floor or sumn v] ?> then
set [gravity v] to [0]
go to x: (OLD X) y: (OLD Y)
end
end
Last edited by Naoderi (Aug. 12, 2021 06:09:39)
- Discussion Forums
- » Help with Scripts
-
» Minor Gravity problem