So, I'm trying to make a flappy bird -like game and I'm using the "character physics" to make the bird fly/jump but the limit is 225 jumps...
Any solution to exceed this limit?
I'm relatively new to bge
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
There is no easy way to do this. Even though there is a jumpCount property you can not edit it via script as it's readable only. However, after some tests I found a hacky workaround that might do it for you, because resetting the gravity seems to reset the jumpCounter. It can by achieved by this procedure:
Paste this script into the text editor.
import bge def main(): cont = bge.logic.getCurrentController() own = cont.owner hero = bge.constraints.getCharacter(own) hero.jump() # Reset the gravity: hero.gravity = 0 hero.gravity = 30 #default value. You might change this :) main()