Discuss Scratch

BucasBubbyloy
Scratcher
22 posts

I need some help to know how to make a sprite jump.

I am assigned by my teacher to do a super mario project on scratch, I don't know how to make my super mario sprite run while changing costumes and jump while changing costumes. But also when I jump up the step, I don't know how to keep the sprite stay there because if I do this:
ifkey spacepressed?thenchangexby10changexby-10
The sprite won't go up the stairs, so I really need some help please.
Flipped_
Scratcher
500+ posts

I need some help to know how to make a sprite jump.

There are platformer tutorials for this. I will give you the links to some of them, but here's something to think about: you need a script to stop when it is touching a certain sprite or color, so you could use a variable to change the position of the character, and manipulate that variable instead of using change x/y blocks. Try to understand the code in these tutorials instead of just backpacking the code, so your teacher doesn't get angry at you.

griffpatch_tutor's tutorial (complicated but amazing results).
djpro's tutorial (simple and effective).

Basic Platformer Wiki Tutorial.
Advanced Platformer Wiki Tutorial.
BucasBubbyloy
Scratcher
22 posts

I need some help to know how to make a sprite jump.

Thx
i7m5m3
Scratcher
1 post

I need some help to know how to make a sprite jump.

How do you make a background move like Super Mario?
PixelatedHam01
Scratcher
25 posts

I need some help to know how to make a sprite jump.

youre jumping up then jumping down right away. that won't work. You might have forgotten to put the forever loop in. Maybe try:

whenclickedforeverifkey spacepressed?thenrepeat10changexby1repeat10changexby-1

Last edited by PixelatedHam01 (Jan. 26, 2019 01:02:46)

Powered by DjangoBB