Discuss Scratch

s8913844
Scratcher
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?

Last edited by s8913844 (Aug. 12, 2021 00:12:17)

Paddle2See
Scratch Team
1000+ posts

Minor Gravity problem

Please don't use link shorteners on Scratch - we prefer to see easily where the link goes
Yusei-Fudo
Scratcher
1000+ posts

Minor Gravity problem

Paddle2See wrote:

Please don't use link shorteners on Scratch
What is a link shortener??


Also, I'll need the project link for this.
Tetris3DS
Scratcher
500+ posts

Minor Gravity problem

Yusei-Fudo wrote:

Paddle2See wrote:

Please don't use link shorteners on Scratch
What is a link shortener??


Also, I'll need the project link for this.
like bit.ly
Thingied
Scratcher
1000+ posts

Minor Gravity problem

Yusei-Fudo wrote:

Paddle2See wrote:

Please don't use link shorteners on Scratch
What is a link shortener??
A link shortener is basically something that makes a short link to redirect to something else.

Last edited by Thingied (Aug. 11, 2021 23:54:48)

s8913844
Scratcher
22 posts

Minor Gravity problem

Tetris3DS wrote:

Yusei-Fudo wrote:

Paddle2See wrote:

Please don't use link shorteners on Scratch
What is a link shortener??


Also, I'll need the project link for this.
like bit.ly
Ok then. https://scratch.mit.edu/projects/557912162/
Naoderi
Scratcher
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)

Powered by DjangoBB