Unbound Scrolling on Mobile

Discussion and feedback on Construct 2

Post » Fri Oct 06, 2017 2:57 am

I am having an unbound scroll in my game.
I am curious if the player scrolls to far away from the play area, will it cause any issues on mobile devices?

I am aware the player could get lost.
I have a built in solution that will allow a reset of ScrollX, ScrollY and LayoutScale if they are to far away and want to return to the play area.

The only other thing I could think of was memory use, but I don't think it is really an issue.

I am asking because I was going to hide a few extras things in my game outside of layout using ScrollX and ScrollY.
B
81
S
42
G
13
Posts: 267
Reputation: 13,658

Post » Fri Oct 06, 2017 7:54 am

It shouldn't be any problem. Everything outside the view is not rendered, so will not use draw calls or fill rate, so it shouldn't have any effect on performance. The only thing that could affect performance a little bit is total number of instances in your layout, since picking becomes more heavy with more instances.

But everything in memory is loaded when the layout start, so memory use would be the same regardless of where you scroll to.

Everything outside the layout will be loaded also, but shouldn't affect the fill rate, or draw calls.
Follow my progress on Twitter
or in this thread Archer Devlog
B
49
S
22
G
19
Posts: 1,140
Reputation: 14,822

Post » Sat Oct 07, 2017 12:31 am

If needed, I was going to use a layer with parallax to allow it or attempt at least.

I am aware of the amount of instances the system has to check.
When I am able to I use a 2nd Control Object to create and place instances where they need to be.
This makes the system only have to check 1-5 objects instead of 30+.

I may limit ScrollX and ScrollY so they can't scroll to some outrageous number, like 50,000+ on X or Y.

Thanks Tune.
B
81
S
42
G
13
Posts: 267
Reputation: 13,658


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests