Fixed Bugs; Temporarily removed I-Block
This commit is contained in:
parent
ee5e17c3e0
commit
956b719e62
4 changed files with 27 additions and 11 deletions
|
|
@ -115,10 +115,18 @@ func turn(direction, newPosition):
|
|||
|
||||
|
||||
func getCollidingAreas():
|
||||
collision.force_update_transform()
|
||||
#collision.monitoring = false
|
||||
#collision.monitorable = false
|
||||
#await get_tree().process_frame
|
||||
#await get_tree().process_frame
|
||||
#collision.monitoring = true
|
||||
collision.monitorable = false
|
||||
await get_tree().process_frame
|
||||
collision.monitorable = true
|
||||
collision.monitorable = false
|
||||
await get_tree().process_frame
|
||||
await get_tree().process_frame
|
||||
await get_tree().process_frame
|
||||
collision.monitorable = true
|
||||
var collidingAreas = []
|
||||
for i in collision.get_overlapping_areas():
|
||||
if i.is_in_group("Block"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue