Template: Auto-runner - help

Get help using Construct 2

Post » Wed Apr 03, 2013 12:52 pm

Using the Template Auto-runner...

I created a 'enemy' that runs with the simulate control 'LEFT'.
Exactly the same 'Player' events...
but 'Player' using the simulate control'RIGHT' and the enemy using 'LEFT'

Why the enemy doesn't fall out the Blocks? he runs and stop in the end of the 'Block':\\\\\


capx:

https://www.dropbox.com/s/6d5ao0lqlryk7ym/Auto-runner%20-%20help.capx
B
8
S
2
G
4
Posts: 17
Reputation: 3,372

Post » Wed Apr 03, 2013 2:01 pm

Wow! That's a pretty nice auto runner! I see why, its a logical problem, you have both for the enemy and the player to simulate control while they are on the ground. I think you need to have this for the enemy "while falling" and also it could be very bad if there is a long jump for the player, because in the air he has no simulate move right...just add those 2 events and I think it should work.GTGJon2013-04-03 14:01:53
B
17
S
5
G
2
Posts: 86
Reputation: 4,343

Post » Wed Apr 03, 2013 2:30 pm

hi! @GTGJon

continuing with the same problem...
i don't know how to resolve

I created the conditions:

Enemy -> Platform is on floor -> Enemy -> Simulate Platform press LEFT

OR

Enemy -> Platform is falling



B
8
S
2
G
4
Posts: 17
Reputation: 3,372

Post » Wed Apr 03, 2013 3:15 pm

@Relugy

My bad! I found something, add System Every 0.01 seconds (or how you like) Enemy simulate control Left.

However, after testing this I noticed sometimes the enemy spawns in the air, but now the enemies are definitely falling off of the blocks.
B
17
S
5
G
2
Posts: 86
Reputation: 4,343

Post » Wed Apr 03, 2013 3:43 pm

@GTGJon

great!... but not 100% sometimes the same problem appears
(the enemy stops in the left of the block)

i don't know... the enemy has the Platform behavior soooo he would have
the same characteristics of the Player!
i guess its something related to the infinity background what do you think?

some bug?
Relugy2013-04-03 15:43:52
B
8
S
2
G
4
Posts: 17
Reputation: 3,372

Post » Thu Apr 04, 2013 1:43 pm

@Relugy

Yeah, sorry, its tricky but I don't believe the tiled infinite background has anything to do with it. I changed the deceleration of the Enemy to 0 and max speed up to 200, and the Max fall speed to 1000, now these guys will fall off 100% but it makes more weird things happen. I see the character being created inside the blocks and running against them if two buildings are close together...

I think it would be good if you can have them spawn somewhere off screen at the highest height so they fall (all of screen) and only destroy them (for garbage collection) when they are like the Player- Y > LayoutHeight.
B
17
S
5
G
2
Posts: 86
Reputation: 4,343

Post » Tue Dec 29, 2015 8:05 pm

Hi, i have the same problem here. Did you find a solutions for this?
B
3
Posts: 1
Reputation: 177


Return to How do I....?

Who is online

Users browsing this forum: Colorfish, Yahoo [Bot] and 22 guests