Jumping in Scratch #shorts | https://www.roblox.com/games/102324234004541/Winter-Drift-Finland

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

sy = 0
change player y by sy
change sy by -1
if(player y < ground level){
sy = 0
player y = ground level
}
if(player y = ground y and if space key pressed) {
sy = 5
}

wat
Автор

Well i do a more realistic one, where there is a variable called y velocity, and when you press space, it sets it to 5, or 10. Then there is code to change y by the y velocity variable, and make the y velocity variable always decrease by 1. So it does a more smooth jump. Then, when it hits the ground it increases by 1. So a more smooth jump is made

cheezpuffs
Автор

Guys here:
When green flash clicked
Forever
Set (var) power of jump to 15
If then key space pressed?
Repeat 31 time
Change y by (var) power of jump
Change (var) power of jump by -1
That's all 😅

ani
Автор

Bruh this is better

Forever
If touching ground then?
Set y to 0
Else change y by -1
Custom block with run without screen refresh
If touching ground then?
Repeat until not touching ground
Change y by 1

Java-Animates
Автор

This is my way to make it advanced.
make a variable called gravity
when green flag clicked,
forever
change gravity by -1
if key space pressed ?
set gravity to (just do whatever amount you want)
Lastly, change y by gravity
so it will go up and down smoothly
I hope this was helpful!😊

bedwarspro
Автор

Pov my code for colisions with speed y:
When flag clicked
forever
if <touching color (Hex# color)?> then
Repeat until <Not touching color (Hex# Colour)?>
change y by (1)
set speed y to (0)

if you don't want it to animate put the repeat until and the blocks inside in a custom block and name it (Fix Overlap) or anything else

@Griffpatch tutorial for "How to make a scratch platformer #1"

alexthekidd
Автор

Dude did a Video where the Code stays up for a Couple Mili- seconds 😂

billy
Автор

Sometimes i forget that you can use X and Y, back then I would use turn and move 😂

USSR_BALL-e
Автор

oh come on I pressed space 2 times and it will make the character fly

sunvietnam
Автор

just do move(key d pressed) - (key a pressed)

Cubic-YouTube
Автор

I already know but this is more smooth than my

influXse
Автор

I don't get none of this. These blocks are confusing and I can't get projects to do what I want

realColonel
Автор

just use this:

when green flag clicked
forever
( if key <space> pressed?
( ( repeat 10
( ( ( change y by 10
( ( repeat 10
( ( ( change y by -10
( (
(

ATTTFan
Автор

I use
Repeat 10
Change y by 10
Repeat 10
Change y by -10

Just_A_Chill_Guy
Автор

I copy your how to make basic shooting game and ya

Mr.Pupeteer
Автор

Bro, him didn't see tutorial to make basic jumping. Have more easy tutorial 😅😅

fatimahkari