What this component contains
ATTRIBUTION.mdLICENSEREADME.mdbaltor_test.gdcomponent.jsonexample.tscninspect_gdscript.pyrun_tests.gdtest_package.pytests/test_top_down_movement_2d.gdtop_down_movement_2d.gdverification/native.json
How it works
- Class
- BaltorTopDownMover2D, extends CharacterBody2D
- Methods
- set_input(direction: Vector2) -> void; get_input() -> Vector2; get_facing() -> Vector2; get_facing_index(sectors: int = 8) -> int; step(delta: float) -> Vector2
- Signals
- facing_changed
- Exports
- max_speed, acceleration, friction, turn_boost, snap_eight_directions, use_input_actions, action_left, action_right and 2 more
- Placement
- res://baltor/godot_components/top_down_movement_2d/
Recorded checks
godot 4.7.2.stable.official.ed1daf0bf
godot_parse_check_onlygodot_gdscript_testsgodot_tests_reject_gutted_componentgodot_editor_importgodot_contract_reflectiongodot_example_scenegodot_readme_usage_compiles
Limits to consider
Set the body's motion_mode to Floating for top-down games (the example scene does). No dodge, knockback or terrain speed modifiers; combine with the dash and knockback components. Verified with Godot 4.7.2 headless; written against the Godot 4.3 API.