How do I fix collisions, distances and the player twitching

Get help using Construct 2

Post » Mon Aug 03, 2015 10:32 am

Hi everyone!
I working on my first endless jumper game, and meet some troubles with collisions and player's twitching after getting a bonuses, and distances between platforms. I've highlighted places with bugs on the events screenshot below.

So, when the player get one of the two bonuses, occurs following: - "Set Platform Vector Y" and disable collisions with enemies and other bonuses. It works but when the action of bonus ends, and some enemies or bonuses on the screen in this moment - collisions still disabled, and enables only for fresh generated objects. Second problem is player's twitching when he flies with Y-vector "under bonus".

Also I try to set up distances between two random generated platforms families (look on screenshot please), and it not works for me.

Image

Any help, advices or critics for my code are welcome
B
11
S
4
G
1
Posts: 41
Reputation: 1,853

Post » Mon Aug 03, 2015 2:51 pm

After the Wait 3 seconds, you turn off ColbaPower, but you don't re-enable collisions.

The twitching is probably from constantly setting the vector Y to -1800 (that will happen every tick)

The distance function may be getting confused if there are multiple Platforms...
B
98
S
35
G
20
Posts: 438
Reputation: 17,875

Post » Tue Aug 04, 2015 12:25 am

Thanks a lot, @AllanR collisions are fixed!
Can you advice me any alternative ways to move the player up? or may be set up vector Y right?
Is there a solution for confused distance function?
B
11
S
4
G
1
Posts: 41
Reputation: 1,853


Return to How do I....?

Who is online

Users browsing this forum: Bootfit, Yahoo [Bot] and 18 guests