Browse Source

cavemans2

shuvit 6 years ago
parent
commit
3ef5c16883
3 changed files with 10 additions and 1 deletions
  1. 1
    0
      README.md
  2. 1
    1
      co_ActionState.py
  3. 8
    0
      controller2.py

+ 1
- 0
README.md View File

@@ -1 +1,2 @@
1 1
 # shuvit
2
+Open source skateboarding game made with UPBGE / Blender.

+ 1
- 1
co_ActionState.py
File diff suppressed because it is too large
View File


+ 8
- 0
controller2.py View File

@@ -3283,8 +3283,10 @@ def hippy_jump():
3283 3283
     STANCE = own["stance"]
3284 3284
     if own['hippy'] == 1 and own['last_hippy'] == 0:
3285 3285
         if STANCE == 0:
3286
+            #own['requestAction'] = 'reg_hippy'
3286 3287
             skater.playAction("reg_hippy", 1,10, layer=1101, priority=1, layer_weight=0, play_mode=0, speed=.5)
3287 3288
         if STANCE == 1:
3289
+            
3288 3290
             skater.playAction("fak_hippy", 1,10, layer=1101, priority=1, layer_weight=0, play_mode=0, speed=.5)            
3289 3291
     if own['hippy'] == 1 and own['last_hippy'] == 1:
3290 3292
         if STANCE == 0:
@@ -3299,9 +3301,11 @@ def hippy_jump():
3299 3301
             own.applyRotation(rot,local)
3300 3302
             print("hippy turn")
3301 3303
             if STANCE == 0:
3304
+                own['requestAction'] = 'reg_hippy_ncw'
3302 3305
                 skater.playAction("reg_hippy_ncw", 10,40, layer=1102, priority=1, layer_weight=0, play_mode=0, speed=.5)
3303 3306
                 print('%hip1')
3304 3307
             if STANCE == 1:
3308
+                own['requestAction'] = 'fak_hippy_ncw'
3305 3309
                 skater.playAction("fak_hippy_ncw", 10,40, layer=1102, priority=1, layer_weight=0, play_mode=0, speed=.5)                
3306 3310
                 print('%hip2')
3307 3311
         elif rLR < -turnsens:
@@ -3310,16 +3314,20 @@ def hippy_jump():
3310 3314
             own.applyRotation(rot,local)
3311 3315
             print("hippy turn neg")            
3312 3316
             if STANCE == 0:
3317
+                own['requestAction'] = 'fak_hippy_nccw'
3313 3318
                 skater.playAction("fak_hippy_nccw", 10,40, layer=1102, priority=1, layer_weight=0, play_mode=0, speed=.5)  
3314 3319
                 print('%hip3')
3315 3320
             if STANCE == 1:
3321
+                own['requestAction'] = 'reg_hippy_nccw'
3316 3322
                 skater.playAction("reg_hippy_nccw", 10,40, layer=1102, priority=1, layer_weight=0, play_mode=0, speed=.5) 
3317 3323
                 print('%hip4')
3318 3324
 ##straight        
3319 3325
         else:
3320 3326
             if STANCE == 0:
3321 3327
                 skater.playAction("reg_hippy", 10,40, layer=1102, priority=1, layer_weight=0, play_mode=0, speed=.5)
3328
+                own['requestAction'] = 'reg_hippy'
3322 3329
             if STANCE == 1:
3330
+                own['requestAction'] = 'fak_hippy'
3323 3331
                 skater.playAction("fak_hippy", 10,40, layer=1102, priority=1, layer_weight=0, play_mode=0, speed=.5)                                        
3324 3332
 
3325 3333
 #pushing and hippy jumps

Loading…
Cancel
Save