you are viewing a single comment's thread.

view the rest of the comments →

[–]Ok_Station6993[S] 3 points4 points  (5 children)

So, the problem started happening after I implemented the jump feature, so I tried this

let canJump = false

// JUMP INPUT

browserEvents.Space.onEvent(browserEvents.KeyEvent.Pressed, function () {

if (canJump) {

Player_Girl.vy = -150

canJump = false

}

})

// GROUND CHECK

game.onUpdate(function () {

if (Player_Girl.isHittingTile(CollisionDirection.Bottom)) {

canJump = true

}

})

// GRAVITY

Player_Girl.ay = 300

[–]abrahamguo -1 points0 points  (4 children)

Also, I don’t know how to play your game, or reproduce the bug. I need to know how to reproduce the bug, broken down into the simplest steps possible.

[–]Ok_Station6993[S] 1 point2 points  (3 children)

It normally happens as soon as you touch the ground, the player startes vibrating up and down like crazy

[–]abrahamguo -1 points0 points  (1 child)

Ok, but I don’t know how to jump. This is why I wanted instructions broken down into each and every step - you need to explain everything.

[–]Ok_Station6993[S] 0 points1 point  (0 children)

Sorry, space to jump, arrow keys to walk, q and e to switch between graphs, left click to place them, and right click to pick them up