Discuss Scratch

dillvillmill
Scratcher
33 posts

how can i make gravity

how can i make gravity
Andretooo
Scratcher
6 posts

how can i make gravity

The basic concept where v is the velocity and the value set to -2 is the acceleration:


Implementing some simple jumping mechanics:
T1G3Rhead
Scratcher
42 posts

how can i make gravity

when green flag clicked
forever
repeat until <touching [stage] ?>
change [gravity] by (-0.4)
change y by (gravity)
end
end
T1G3Rhead
Scratcher
42 posts

how can i make gravity

T1G3Rhead wrote:

when green flag clicked
forever
repeat until <touching [stage] ?>
change [gravity] by (-0.4)
change y by (gravity)
end
end
hope this helps, T1G3Rhead


p.s. get a profile pic, please
dillvillmill
Scratcher
33 posts

how can i make gravity

ok thanks
s181070tkomps
Scratcher
1 post

how can i make gravity

when green flag clicked
forever
if < <touching [ air] ?> > then
set [ Y] by (-2)
when green flag clicked
forever
if < <key [ up arrow key] pressed?> > then
change y by (10)
wait (0.1) secs
change y by (Y)
if < <touching [ ground ] ?> > then
set [ Y] to [0]
end

This may make gravity, if you want it to fall faster change’Y’ -3,4,5,6,7,8,9,10……

Last edited by s181070tkomps (April 4, 2022 01:18:35)

headfoneuser14
Scratcher
1 post

how can i make gravity

Thank you so much
derek20idk
Scratcher
1 post

how can i make gravity

when green flag clicked
forever
if <not <touching [Stage] ?>> then
change [gravity] by (-0.2)



else
set [gravity] to (0)
end
end
when green flag clicked
forever
change y by (gravity)
hope this helps, have a good time scratching
(or something idk-)
106809nes
Scratcher
1000+ posts

how can i make gravity

derek20idk wrote:

when green flag clicked
forever
if <not <touching [Stage] ?>> then
change [gravity] by (-0.2)



else
set [gravity] to (0)
end
end
when green flag clicked
forever
change y by (gravity)
hope this helps, have a good time scratching
(or something idk-)
Is this a necropost? Also this was made in 2022~
Sunky-mpegx
Scratcher
8 posts

how can i make gravity

Since you've got your question answered can you please close this?
106809nes
Scratcher
1000+ posts

how can i make gravity

Sunky-mpegx wrote:

Since you've got your question answered can you please close this?
Dude this was made in 2022, read #9
NIKI-KOLCHAGOV
Scratcher
500+ posts

how can i make gravity

106809nes wrote:

Sunky-mpegx wrote:

Since you've got your question answered can you please close this?
Dude this was made in 2022, read #9
Well

Powered by DjangoBB