Video Thumbnail

Sign up for a plan to instantly unlock all premium lessons.

UNLOCK LESSON

Premium Features

Download Video

Mario jump sprite

When you jump up in the air, do you continue flailing your legs as if you're still running, or do you stay in some sort of jump pose?

Even though I'm sure many of you would like to say "flail your legs" for the lulz, the answer is: jump pose.

Here we're going to add in a Mario sprite that only activates when Mario is in the air. It may seem easy at first thought, but the way in which we're going to switch Mario into this pose is a little different from how we switched him between standing and running.

We're also going to switch our Deekay Tool space character out with a Mario sprite that I illustrated, just so we can get some sprite sheet characters that are evenly spaced for when we proceed to the next video which contains some heavy collision detection related concepts.

Comments

Want to participate?

Create a free Chris Courses account to begin

Login
r
revankarora posted a year ago

i'm can't link that episode with this so just after mario jump sprite episode can you add a episode called fixing your jump

0
r
revankarora posted a year ago

hey chris there is a bug in my project that if you jump without clicking left or right only jump, the the sprite jumps to the left side and stops in the ground with the left sprite and doesn't return to normal unless you move

0
chris posted a year ago

Hey there, I'd recommend checking out my newer platformer video at around the 30minute mark for an idea on how to flip sprites without requiring a second, reversed spritesheet: https://chriscourses.com/courses/2d-platformer/videos/sprites-and-animation

Learned a lot over the years and I think this is the ideal way to do things now. Know it's off course a bit with the current video, but would still recommend it!

0
q
qwertyMaster74 posted 3 years ago

Hi, for some reason all my sprites are moving extremely fast. How do I slow it down to a better pace?

0
q
qwertyMaster74 posted 3 years ago

Hi, for some reason all my sprites are moving extremely fast. How do I slow it down to a better pace?

0
q
qwertyMaster74 posted 3 years ago

Hi, for some reason all my sprites are moving extremely fast. How do I slow it down to a better pace?

0
C
CraSHBoBo posted 4 years ago

hello, when player jump I can uses keyword "up" without limits. How do fix this bug?

0
chris posted 4 years ago

Within your event listener for "up," you should be able to add a conditional that says only change your velocity if the y velocity is currently 0:

if (player.velocity.y === 0) player.velocity.y = -10
2
C
CraSHBoBo posted 4 years ago
thank you for the answer
1
chris posted 4 years ago

No problem 🙌

0

Providing the lift to launch your development career

© 2026 Chris Courses. All rights reserved.