Skip to content
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

Can't see the players in SplitScreen demo #281

Closed
NQNStudios opened this issue Mar 15, 2021 · 3 comments
Closed

Can't see the players in SplitScreen demo #281

NQNStudios opened this issue Mar 15, 2021 · 3 comments

Comments

@NQNStudios
Copy link

First of all, the SplitScreen demo won't play in browsers anymore because it's hosted as a Flash game: https://haxeflixel.com/demos/SplitScreen/

In my clone of the repository, I ran with lime test html5 and it runs without any errors to console, but I can't see the players (which judging from the code should just be solid-color squares).

@Geokureli
Copy link
Member

the problem is that the tilemap doesn't show because of how they are loading the tile asset. the players aren't showing because they are falling below the camera too fast. the same thing happens on EZPlatformer but it's easier to spot.

Side note, on EZPlatformer it seems that the tilemap doesn't load on the first try, but succeeds on the second attempt that happens when the player triggers a reset to playstate. This is because they load the tilemap asset using FlxGraphic.fromClass(GraphicAuto). On web, it seems the image is loaded asynchronously and seen as a 0x0 image when creating the tilemap.

we should add the autotile assets to the include.xml#L17 asset list and load them via "flixel/images/tile/autotiles.png"

@Geokureli
Copy link
Member

@Gama11 I was expecting the html5 preview of splitscreen demo to show up, now. Is it manually disabled somewhere? I see the EZPlatformer demo is fixed from #2402

@Gama11
Copy link
Member

Gama11 commented Sep 13, 2021

Possibly, in the haxeflixel.com repo.

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

No branches or pull requests

3 participants