Use collection factory in fixed fit projection (SOLVED)

I am building an endless runner game for mobile. I use mobile template and it sets render to fixed fit projection. I want to spawn bars from left to right when users touch the screen. But it does not hide the spawners that is outside the default size.


How can I fix this?

I think it is an editor feature. I build an HTML5 and it works as I expected

Try to build for desktop to see if you still have that issue. I used a tilemap with black tiles that frame the screen window and put it in front of everything to avoid the player to see anything except the screen window.
It seems possible to tweak rendering but it is a bit too advanced to my taste. Take a look at this thread:

1 Like

@flashjaysan I think this is fine. Because my game will be on mobile and browser. So I will ignore it. I also played your game and its art is cool

1 Like

No worry! It was just some ideas to solve the issue. :wink:

Yeah, the work of that artist is really cool:
https://opengameart.org/users/grafxkid

2 Likes

Nice! I usually have a hard time finding anything good at OGA.

2 Likes

Yeah! I specially love his Sidescroller city pack