Skip to content

RECOVERY: Add fromOrigin to character positioning (#2991) #5071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

AbnormalPoof
Copy link
Collaborator

@AbnormalPoof AbnormalPoof commented May 12, 2025

About this pull request

This pull request was made to recover #2991 which was closed due to inactivity, as the author no longer appears to be active on the repository.
If this pull request is merged, the original author will receive credit instead of me.

NOTE: If the original author returns to update the original pull request, this pull request will be closed.

Original pull request description

Adds a fromOrigin property to stage character data (defaults to true)

"bf": {
	"zIndex": 300,
	"position": [4200, 2850],
	"fromOrigin": false,
	"cameraOffsets": [-300, -300]
},

It set to true, everything just acts like normal, but if you turn it off, it positions the character in absolute coordinates (also using character position offsets), ignoring the feet position and horizontal center. Pretty useful when moving stuff from old engines.

@AbnormalPoof AbnormalPoof added the type: enhancement Involves an enhancement or new feature. label May 12, 2025
@github-actions github-actions bot added pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. status: pending triage Awaiting review. labels May 12, 2025
@AbnormalPoof AbnormalPoof changed the base branch from main to develop May 12, 2025 04:14
@EliteMasterEric EliteMasterEric added size: medium A medium pull request with 100 or fewer changes. and removed size: medium A medium pull request with 100 or fewer changes. labels May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. status: pending triage Awaiting review. type: enhancement Involves an enhancement or new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants