X Tutup
Skip to content

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

Merged
mapedorr merged 2 commits intocarenalgas:developfrom
anthonyirwin82:add-support-for-characters-to-teleport
Apr 19, 2024
Merged

added support for character to teleport to markers, hotspots and props#206
mapedorr merged 2 commits intocarenalgas:developfrom
anthonyirwin82:add-support-for-characters-to-teleport

Conversation

@anthonyirwin82
Copy link
Contributor

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)

Copy link
Collaborator

@mapedorr mapedorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well coded and documented. Thank you so much!

@mapedorr mapedorr merged commit 567a088 into carenalgas:develop Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup