mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-26 01:54:23 +00:00
Re-add layer to Collectable
This commit is contained in:
parent
7a4680a928
commit
05a0f84b70
3 changed files with 17 additions and 1 deletions
|
@ -9,7 +9,6 @@ radius = 16.0
|
||||||
script = ExtResource("1_p0pc3")
|
script = ExtResource("1_p0pc3")
|
||||||
|
|
||||||
[node name="MouseArea" type="Area2D" parent="."]
|
[node name="MouseArea" type="Area2D" parent="."]
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 0
|
collision_mask = 0
|
||||||
monitorable = false
|
monitorable = false
|
||||||
|
|
||||||
|
|
11
behaviours/drop_on_free.gd
Normal file
11
behaviours/drop_on_free.gd
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
extends Node2D
|
||||||
|
|
||||||
|
|
||||||
|
# Called when the node enters the scene tree for the first time.
|
||||||
|
func _ready() -> void:
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
func _process(delta: float) -> void:
|
||||||
|
pass
|
6
behaviours/drop_on_free.tscn
Normal file
6
behaviours/drop_on_free.tscn
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[gd_scene load_steps=2 format=3 uid="uid://dv7ea2y0l46e"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://behaviours/drop_on_free.gd" id="1_4xihn"]
|
||||||
|
|
||||||
|
[node name="DropOnFree" type="Node2D"]
|
||||||
|
script = ExtResource("1_4xihn")
|
Loading…
Reference in a new issue