HaxeFlixel / HaxeFlixel/flixel-ui
Can't get to show RPG Interface demo/popup_demo.xml on center of the screen
Nobody has claimed this yet.
- Dominant language
- Haxe
- Stars
- 201
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Description
Hi Lars and great people from Level Up Labs,
I have a popup based on RPG Interface demo/popup_demo.xml to show up at center of the screen
I got a map and If I set camera movement using
FlxG.camera.follow
popup seems to be stuck at x=0, y=0 and there it is visible
I can't get to work popup based on RPG Interface demo/popup_demo.xml (https://github.com/HaxeFlixel/flixel-demos/blob/dev/User%20Interface/RPG%20Interface/assets/xml/popup_demo.xml)
If I set
FlxG.camera.x = 100;
FlxG.camera.y = 100;

I expect it too be in the center of screen
I looked the code of class Popup_Demo extends FlxUIPopup and it seems that it should set scrollfactor to 0
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the referenced User Interface/RPG Interface/assets/xml/popup_demo.xml and the Popup_Demo class extending FlxUIPopup. Reproduce the popup while using FlxG.camera.follow or changing FlxG.camera.x and y, then inspect how its position and scroll factor are handled. Done means the popup appears centered on the screen while the camera moves.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- xml
- Domain
- frontend, game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100