Is there a difference between these two?

Get help using Construct 2

Post » Fri Apr 21, 2017 7:14 pm

So, I have read somewhere that the number of moving objects on the screen has a serious impact to the app's performance.
So, I have this map with levels in my game, which you drag left or right in order to slide it. Because it is very laggy, I have come up with an idea of scrolling the screen left-right, instead of moving the whole map together with the bunch of sprites pinned on it.
The question is: Is there any difference, regarding the performance, between moving the whole map in order to slide it, and only scrolling the screen and moving the UI?
My first project:
Image
B
20
S
8
G
1
Posts: 172
Reputation: 2,463

Post » Sat Apr 22, 2017 4:04 am

Yes. Changing the positions of a lot of objects every tick probably utilizes significantly more resources than just changing the position of the viewport (or a single invisible helper sprite with the "scroll to" behaviour).
Mistakes were made.
B
53
S
27
G
114
Posts: 1,695
Reputation: 64,438


Return to How do I....?

Who is online

Users browsing this forum: TRMG and 10 guests