Repository navigation
Flight control - #3725
Open
LizardKing777 wants to merge 4 commits into
Open
Flight control#3725LizardKing777 wants to merge 4 commits into
LizardKing777 wants to merge 4 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a few @EasyRPG comment commands that gives some more control over the system's flight mechanics. Specifically, it adds three:
@easyrpg_event_airship_move [eventID], [0|1]
This causes any remaining movement to continue when the event (10004 for airship) is ascending or descending. This can be used to make for a more "natural" take off and landing for things not built like a quad-copter, though it needs a bit of in-game coding to work smoothly.
@easyrpg_event_set_z [eventID], [N]
This adjusts the event's altitude to the value in N - normally the airship is 32 pixels above tile it occupies. Note this can be used for any event, not just the airship. Also note it doesn't change any collision data,
@easyrpg_event_get_z [eventID], [N]
This reads the integer value of the event's altitude and stores it in the variable pointed to by 'N'.