How do I find out what event is changing my speed?

Get help using Construct 2

Post » Sun Jul 19, 2015 8:02 pm

I'm working on an endless runner game where the player has to jump from obstacle to obstacle. To make things interesting I increase the bullet speed of the obstacles (for example: "Obstacle.Bullet.Speed * 1.05" using the Every X Seconds action. But shortly after that event increases the speed, something else resets the speed back to it's default value. I cannot find any other event that is supposed to change this, and in Debug mode I can't seem to find out what exactly is changing it. Any ideas?
B
19
S
5
G
2
Posts: 22
Reputation: 2,465

Post » Sun Jul 19, 2015 10:02 pm

Well, short of looking at your .capx to try and find it, I'd suggest plugging "speed" into the event sheet search box so it'll isolate any events to do with speed.

It sounds like the game might be treating the speed increase as a one-off event instead of continuous, so it'll increase the speed of one object, but as another one spawns it sets speed back to its original. Only guessing though.
B
50
S
23
G
17
Posts: 291
Reputation: 12,432

Post » Mon Jul 20, 2015 6:43 am

That was indeed the problem. Instead of putting it in the events where I created the obstacles I put it somewhere else, applying it only to the current obstacles. I guess that's what happens when you work with less then normal amounts of sleep.
B
19
S
5
G
2
Posts: 22
Reputation: 2,465


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, davehill78, lukewasthefish, tarek2, Unconnected and 15 guests