Browse Source

stop air fix

shuvit 4 years ago
parent
commit
e72bb3a18f
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      scripts/controller2.py

+ 3
- 1
scripts/controller2.py View File

903
         if onGround:
903
         if onGround:
904
             pass
904
             pass
905
     def stop():
905
     def stop():
906
-        if linVelocity.x < .05 and linVelocity.x > -.05:
906
+        if (linVelocity.x < .05 and linVelocity.x > -.05) or onGround == False:
907
             can_stop = 0
907
             can_stop = 0
908
             own["lastStop"] = True
908
             own["lastStop"] = True
909
         else:
909
         else:
3306
         if frame - lif > 3 and own['invert_on'] == 0:
3306
         if frame - lif > 3 and own['invert_on'] == 0:
3307
             own['invert_type'] = None
3307
             own['invert_type'] = None
3308
 
3308
 
3309
+        #print(own['requestAction'])
3310
+
3309
     invert()
3311
     invert()
3310
     footplant()
3312
     footplant()
3311
     #print(own['invert_on'], 'invert_on')
3313
     #print(own['invert_on'], 'invert_on')

Loading…
Cancel
Save