carenalgas / popochiu

Godot plugin to make point n' click games in a similar way to tools like Adventure Game Studio and Power Quest.
MIT License
154 stars 15 forks source link

added support for character to teleport to markers, hotspots and props #206

Closed anthonyirwin82 closed 2 months ago

anthonyirwin82 commented 2 months ago

Other adventure game engines I have used provided helper functions to both walk places with walking animations or to instantly move from their current location to a new location without any animations.

I have added teleport helper functions the same as the existing walk_to ones for teleporting the character from their current location to a new one. This should make it easier for new users as they don't need to learn how to do it with gdscript and provides similar functionality to other adventure game engines.

queue_teleport_to_prop(id: String, offset := Vector2.ZERO) teleport_to_prop(id: String, offset := Vector2.ZERO)

queue_teleport_to_hotspot(id: String, offset := Vector2.ZERO) teleport_to_hotspot(id: String, offset := Vector2.ZERO)

queue_teleport_to_marker(id: String, offset := Vector2.ZERO) teleport_to_marker(id: String, offset := Vector2.ZERO)