How can I get the impulse to work for my character to jump in the game?

My character can move side to side but not jump when in play mode but says it’s immovable here, which I cant figure out why. I keep unclicking snap to grid but it will go back to that if I click on edit sprite. I also have the walking animation for the sprite but that will also be unselected. Is there some step I’m missing? I tried increasing the impulse by a lot and where it was inputting too, but that didn’t work .


1 Like

Is it because of the drag feature, this is for a mobile game, so unsure of what controls will work best for that?

Go into object’s physics settings and make it moveable from there. Also, a game link would be helpful.

2 Likes

so I changed the physics to make it movable but now he falls down off the screen if affected by gravity or fly up off the screen if not lol. I apologize if this is a simple question, I’ve never made a game before so learning everything. Flowlab Game Creator - New Game

1 Like

You unchecked “affected by gravity”. Now the player falls off of the screen. This is because you have made all the blocks in the user interface layer. You need to remake all those blocks in the game layer now. I do this by creating new game layer objects with default physics, then going into the sprite editor, clicking browse, and then clicking on the UI sprites from there. Then I delete the UI objects from the game by going into the UI layer, then clicking “delete all objects” from the object library.

No problem

3 Likes

hmmm so I added all of the blocks in the game layer and deleted from the user interface layer but when I go to play the game on my cell, he still just flies off the screen. I’m sorry to continue to ask, I’m just unsure of what I did wrong now. Thank you in advance.

1 Like

Can you show me a picture of the object’s physics?

1 Like

Screenshot 2023-09-05 123829

1 Like

The impulse isn’t working? That’s strange. I took a quick peek (At the game), it all works fine.

Off-Topic Tip: If you want a smooth game, make every object capsuled.

2 Likes

So I can get him to jump now thank you, but separate issue is he gets stuck when he jumps on the flag. Is it because of the speech bubble? I could not figure out how to do a speech bubble so I did it as a sprite with an animation, so that might be why. Also I left those in the user interface. Would that have been better in the game layer too? Could that also be the issue?
Also I am not sure what it means to capsule an object. I do appreciate all your help and feedback.

3 Likes
  1. Go to the flag’s physics, and turn the solid off.
  2. If you keep the speech bubble in the user interface, it will stay in the same place when you move the screen.
  3. In an object’s physics, there is a part at the bottom that says collision shapes, with a few images. To capsulate an object, select the capsule option.
4 Likes

Thank you for the explanation, tips and help with capsulating. I appreciate it.

2 Likes

Thank you so much for all of your help. I figured that out. :slight_smile:

2 Likes