mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 23:10:08 +01:00
* General proofreading for grammar and spelling * General formatting * Addition of appropriate literals where appropriate, i.e. `&"foo"` for `StringName` cases and `^"foo/bar"` for `NodePath` cases
7 lines
156 B
GDScript
7 lines
156 B
GDScript
extends CharacterBody2D
|
|
|
|
@rpc("call_local")
|
|
func exploded(by_who: int) -> void:
|
|
$"../../Score".increase_score(by_who)
|
|
$"AnimationPlayer".play(&"explode")
|