# Whats wrong

**URL:** <https://forum.kirupa.com/t/whats-wrong/174739>\
**Category:** flash\
**Created:** [January 8, 2006, 8:32pm UTC](https://forum.kirupa.com/t/whats-wrong/174739 "2006-01-08T20:32:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayjarboi](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mayjarboi](https://forum.kirupa.com/u/mayjarboi)\
**Post date:** [January 8, 2006, 8:32pm UTC](https://forum.kirupa.com/t/whats-wrong/174739/1 "2006-01-08T20:32:32Z")

</div>

if u press up it jumps, and when u press jump and forward or jump and back it is supposed to do a flip but it doesnt y

heres the code

```auto
onClipEvent (load) {
 X = _x;
 Direction = "Right";
 Action = "Stand";
 Mode = "Regular";
 Frontflip = false;
 Backflip = false;
 Jump = false;
}
onClipEvent (enterFrame) {
 gotoAndStop(Mode+" "+Action+" "+Direction);
 if (Key.isDown(Key.RIGHT) && Frontflip == false && Backflip == false && Jump == false) {
  Direction = "Right";
  Action = "Walk";
  if (Action == "Walk") {
   _x += 4;
  }
 } else if (Key.isDown(Key.LEFT) && Frontflip == false && Backflip == false && Jump == false) {
  Direction = "Left";
  Action = "Walk";
  if (Action == "Walk") {
   _x -= 4;
  }
 } else if (Key.isDown(Key.UP) && Frontflip == false && Backflip == false) {
  Action = "Jump";
  Jump = true;
 } else if (Key.isDown(Key.UP) && Key.isDown(Key.RIGHT) && Backflip == false && Jump == false) {
  Action = "Frontflip";
  Frontflip = true;
 } else if (Key.isDown(Key.UP) && Key.isDown(Key.LEFT) && Frontflip == false && Jump == false) {
  Action = "Backflip";
  Backflip = true;
 } else {
  Press = false;
  if (Frontflip == false && Backflip == false && Jump == false) {
   Action = "Stand";
  }
 }
}

```
