# Please help, the girl is not jumping

**URL:** <https://forum.code.org/t/please-help-the-girl-is-not-jumping/38805>\
**Category:** Coding and Debugging Help\
**Tags:** csd-unit-3\
**Created:** [December 14, 2023, 2:08am UTC](https://forum.code.org/t/please-help-the-girl-is-not-jumping/38805 "2023-12-14T02:08:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sherry.wood](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@sherry.wood](https://forum.code.org/u/sherry.wood)\
**Post date:** [December 14, 2023, 2:08am UTC](https://forum.code.org/t/please-help-the-girl-is-not-jumping/38805/1 "2023-12-14T02:08:06Z")

</div>

> **[Check out what I made](https://studio.code.org/projects/gamelab/xV5A2ltgFZIgHB5QegskC_ROVrCCyaSutpxuRuFJHlo)**
>
> I wrote the code myself with Code.org

The girl goes up super slow and then doesn’t come back down. I can’t figure this out. I have tried adding the keywentdown up inside if girl y\>324 and a lot of other things but now luck:( Thanks!

---

<div class="post-metadata">

**Author:** ![varrience](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/varrience/32/8042_2.png) [@varrience](https://forum.code.org/u/varrience)\
**Post date:** [December 14, 2023, 7:59am UTC](https://forum.code.org/t/please-help-the-girl-is-not-jumping/38805/2 "2023-12-14T07:59:30Z")

</div>

hmm i think the condition was executing right away stopping any downwards momentum i rewrote your jumping code so substitute all the “girl” instances that deal with jumping with this

```auto
if (keyWentDown("up") && girl.velocityY === 0) {
    girl.velocityY = -10;
  } else if (girl.y+girl.velocityY < 250){
    girl.velocityY += 0.3;
  } else {
    girl.velocityY = 0;
    girl.y = 250;
  }

```

with this jumps should be smoother and with less inconsistensy
