cutscenes (WIP)
This commit is contained in:
parent
32ec84364c
commit
cf76a79628
11 changed files with 351 additions and 7 deletions
|
@ -29,7 +29,13 @@ func _physics_process(delta):
|
|||
|
||||
func _on_body_entered(body):
|
||||
if !body.is_in_group(btype):
|
||||
if body.is_in_group("players") || body.is_in_group("boss") || body.is_in_group("enemies"):
|
||||
if body.is_in_group("players"):
|
||||
if body.weakness == speciality:
|
||||
print("weakness")
|
||||
Input.start_joy_vibration(0,0,1,3)
|
||||
else:
|
||||
Input.start_joy_vibration(0,1,0,2)
|
||||
elif body.is_in_group("boss") || body.is_in_group("enemies"):
|
||||
if body.weakness == speciality:
|
||||
print("weakness")
|
||||
#if body.is_in_group("players"):
|
||||
|
|
|
@ -25,9 +25,15 @@ func _physics_process(delta):
|
|||
|
||||
func _on_body_entered(body):
|
||||
if !body.is_in_group(btype):
|
||||
if body.is_in_group("players") || body.is_in_group("boss") || body.is_in_group("enemies"):
|
||||
if body.is_in_group("players"):
|
||||
if body.weakness == 3:
|
||||
print("weak to fire")
|
||||
print("weakness")
|
||||
Input.start_joy_vibration(0,0,1,3)
|
||||
else:
|
||||
Input.start_joy_vibration(0,1,0,2)
|
||||
elif body.is_in_group("boss") || body.is_in_group("enemies"):
|
||||
if body.weakness == 3:
|
||||
print("weakness")
|
||||
#if body.is_in_group("players"):
|
||||
# Global.live = 2
|
||||
#elif body.is_in_group("enemies"):
|
||||
|
|
|
@ -24,10 +24,16 @@ func _physics_process(delta):
|
|||
|
||||
|
||||
func _on_body_entered(body):
|
||||
if !body.is_in_group(btype):
|
||||
if body.is_in_group("players") || body.is_in_group("boss") || body.is_in_group("enemies"):
|
||||
if !body.is_in_group(btype) && Global.live == 1:
|
||||
if body.is_in_group("players"):
|
||||
if body.weakness == 0:
|
||||
print("weak to ice")
|
||||
print("weakness")
|
||||
Input.start_joy_vibration(0,0,1,3)
|
||||
else:
|
||||
Input.start_joy_vibration(0,1,0,2)
|
||||
elif body.is_in_group("boss") || body.is_in_group("enemies"):
|
||||
if body.weakness == 0:
|
||||
print("weakness")
|
||||
#if body.is_in_group("players"):
|
||||
# Global.live = 2
|
||||
#elif body.is_in_group("enemies"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue