How to increase platformer's speed

Get help using Construct 2

Post » Sun Jul 20, 2014 8:59 am

I want a VARIABLE platformer speed. That means, I want the speed to increase by 20 as the player goes further in the game. I want the game to speed up as the player progresses. Here is what I am doing and it works:

Platform on moved:
Player score<300: Set platform maximum speed to 375
Player score>300: Set platform maximum speed to 450

I have to add this or it won't work:

Platform on landed:
Player score<300: Set platform maximum speed to 375
Player score>300: Set platform maximum speed to 450

But, the problem is that when the player reaches 300 score, the speed DOES increase but the game starts lagging heavily (jerky movement of the platform) ONLY ON mobile not on desktop.

However, when I delete this code and run the game on mobile with CONSTANT speed (450) it doesn't lag.

Is there any other way to achieve this speed increase without the lag?
B
10
S
2
Posts: 79
Reputation: 1,122

Post » Sun Jul 20, 2014 9:13 am

If you work through this tutorial which are 1,2,3 you will be able to do much more
https://www.scirra.com/tutorials/785/si ... ial-part-1
B
249
S
39
G
15
Posts: 1,952
Reputation: 40,579


Return to How do I....?

Who is online

Users browsing this forum: fnfhjfdbdjbfbfd, plinkie and 13 guests