How do I stop the lag from the endless runner template

Get help using Construct 2

Post » Tue Jan 31, 2017 10:38 pm

Hi,

I used the endless runner template from construct 2. I just changed the background and the plattforms but now it does not run smoothly anymore. espacially the background seems to have a lag from time to time. I checked the size of my backgroudn image. It uses the power of two and it is not in a big size. The highest memory use in my game is 50mb. I tried it with a simple color background but this also doesnt cut it.

Does anyone have an idea how to fix this? Is there another approach to get the background running infinit and smooth from right to left other than the bullet beheaviour?

Thanks a lot in advance since I tried to find it out my self first, but I just think I am stuck by myself. :?:
B
6
S
1
Posts: 40
Reputation: 464

Post » Wed Feb 01, 2017 4:02 am

It will be difficult for anyone to assist you without a capx to diagnose.
Mistakes were made.
B
53
S
27
G
114
Posts: 1,695
Reputation: 64,438

Post » Wed Feb 01, 2017 10:58 am

Benhh wrote:Is there another approach to get the background running infinit and smooth from right to left other than the bullet beheaviour?


I had similar performance issues in an endless runner I made with the Bullet behaviour, so I replaced Bullet with setting the X position using the lerp function e.g. Set X to lerp(Self.X, Self.X - Speed, dt), where Speed is a Global Variable set to the same speed as the Bullet.

Here's the built-in Auto-Runner example, but modified using lerp:
capx r233
Find all the Construct 2 games that were on Steam Greenlight here
B
35
S
9
G
7
Posts: 467
Reputation: 6,864


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 8 guests