Initial Art Pass
- Add Character.blend and Walkman.blend models - Update PhonePhreak.blend model - Add character death animation (96 frames) - Add character idle animation (29 frames)
This commit is contained in:
1 parent
780f8a606d
commit
88e40f3360
2092 files changed
+46327
-237
No files matched your search
@@ -331,6 +331,13 @@ func _physics_process(delta):
|
||||
weapon = 2
|
||||
GloblaData.weapon = 2
|
||||
$Label.text = str(int(GloblaData.cassets))
|
||||
if Input.is_action_just_pressed("right"):
|
||||
dir = 1
|
||||
$ColorRect5.global_position = $Marker2D3.global_position
|
||||
if Input.is_action_just_pressed("left"):
|
||||
$ColorRect5.global_position = $Marker2D2.global_position
|
||||
$ColorRect5.rotation = -130
|
||||
dir = 0
|
||||
if GloblaData.doing_puzzle == false:
|
||||
if Input.is_action_just_pressed("right"):
|
||||
$ColorRect5.global_position = $Marker2D3.global_position
|
||||
@@ -379,6 +386,24 @@ func _physics_process(delta):
|
||||
downTap = Input.is_action_just_pressed("down")
|
||||
twirlTap = Input.is_action_just_pressed("twirl")
|
||||
|
||||
if !is_on_floor():
|
||||
$AnimatedSprite2D.animation = "jump"
|
||||
$AnimatedSprite2D.play()
|
||||
elif (leftHold or rightHold) and Input.is_action_just_pressed("fire") and weapon == 2:
|
||||
$AnimatedSprite2D.animation = "run_shoot"
|
||||
$AnimatedSprite2D.play()
|
||||
elif leftHold or rightHold:
|
||||
$AnimatedSprite2D.animation = "run"
|
||||
$AnimatedSprite2D.play()
|
||||
elif runHold:
|
||||
$AnimatedSprite2D.animation = "run"
|
||||
$AnimatedSprite2D.play()
|
||||
elif Input.is_action_just_pressed("fire") and weapon == 2:
|
||||
$AnimatedSprite2D.animation = "shoot"
|
||||
$AnimatedSprite2D.play()
|
||||
else:
|
||||
$AnimatedSprite2D.animation = "idle"
|
||||
$AnimatedSprite2D.play()
|
||||
|
||||
#INFO Left and Right Movement
|
||||
if GloblaData.doing_puzzle == false:
|
||||
|
||||
Reference in new issue
Block a user