Skip to content

Commit a2cfe77

Browse files
committed
CharacterBody2D: Add "Is on floor" value block
So users can check if the character is on the floor or not.
1 parent 2be89f3 commit a2cfe77

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[gd_resource type="Resource" load_steps=2 format=3 uid="uid://cbpicqif1ddro"]
2+
3+
[ext_resource type="Script" path="res://addons/block_code/code_generation/block_definition.gd" id="1_btxic"]
4+
5+
[resource]
6+
script = ExtResource("1_btxic")
7+
name = &"characterbody2d_is_on_floor"
8+
target_node_class = "CharacterBody2D"
9+
description = "True if the character is on the floor."
10+
category = "Physics | Velocity"
11+
type = 3
12+
variant_type = 1
13+
display_template = "Is on floor"
14+
code_template = "is_on_floor()"
15+
defaults = {}
16+
signal_name = ""
17+
scope = ""

0 commit comments

Comments
 (0)