I can't understand auto-runner template events.

Just started using Construct 2? Post your questions here

Post » Mon Feb 09, 2015 1:57 pm

Hi, i am very beginner at C2 and my biggest problem is language. My english is not enough and i am spending extra efford to understand tutorials and manual. Currently trying to understand auto-runner game. I can't find any detailed explanation about it. Can somebody please explain this part?

Image

When characther is not on floor we add 5 it's frame independent. When it's on floor we add "1" and it's not using dt. Why?
B
8
S
2
G
1
Posts: 6
Reputation: 728

Post » Mon Feb 09, 2015 3:44 pm

Event 9 is a repeating event. Every tick when the player is on the platform this event triggers. Since this event repeats every tick, we need to use time to define how far to move. You may already understand this part of the issue but it is important to explain it again so you can see the difference between the 2 events.

Event 10 only happens when the player first lands on the platform. It doesn't need to use time because it isn't a repeating event. After the player has triggered the On Landed event, it will not trigger again until the player either falls or jumps and lands back on the platform.
B
38
S
12
G
11
Posts: 329
Reputation: 7,708

Post » Mon Feb 09, 2015 4:02 pm

FragFather wrote:Event 9 is a repeating event. Every tick when the player is on the platform this event triggers. Since this event repeats every tick, we need to use time to define how far to move. You may already understand this part of the issue but it is important to explain it again so you can see the difference between the 2 events.

Event 10 only happens when the player first lands on the platform. It doesn't need to use time because it isn't a repeating event. After the player has triggered the On Landed event, it will not trigger again until the player either falls or jumps and lands back on the platform.


Thank you for respond. I get it.
B
8
S
2
G
1
Posts: 6
Reputation: 728

Post » Mon Feb 09, 2015 7:46 pm

@inanakmugan These explanations are of what it is doing, not why it is being done. So....

I don't really care for how the default auto-runner template handles the running. Essentially this template creates a treadmill, your platforms are moving left under you, and the player is running right. These events fix the difference in speed as they move together. Similar to if you were walking on a treadmill slower than it was moving under you, you would fall off the back. Or if you were jumping up and down on it. This template manually moves you forward a bit, so you don't fall off the back.

Here is a link to the arcade where someone posted a capx that I used in my autorunner. Instead of a treadmill, the platforms are static and only the player is moving right. No need for the "hand of god" player placement to correct the game over time.

http://www.scirra.com/arcade/example/59 ... -runner-v2

Here is what they say about it: "A slightly better version of the default auto-runner template included with C2. In this, the movement is switched from platform to player. So each block is static, and, after reaching the end of the map, destroyed. Basically, the number of events has been trimmed from 13 to 10, but needs to be modified so the background can properly scroll. So the final product will be about 11."
B
21
S
4
G
1
Posts: 96
Reputation: 1,852

Post » Mon Feb 09, 2015 7:53 pm

you need to have those events to assure the charachter doesnt leave the screen or moved to much in left side, because is not him who moves but the grun tiles, so on hit the tile will trigger the slightly movement forward of the charachter . u should not play to much with that unless u know what ur doing.
Image
B
62
S
19
G
67
Posts: 1,310
Reputation: 41,938

Post » Mon Feb 09, 2015 10:23 pm

@MrGoatsnake

Thanks for detailed explanation.

And your answer is what i am looking for. I try to add something to C2 template for increase difficulty further of game. so i create an event, when totaldistance reach 10000 speed increase to 400. Then at that speed i realise when you jump, player move a little bit right. But when you jump 100 times player almost reach middle of screen. Than i realise player is moving all speeds. It's not stable at C2's stock template too. I'm thinking about make something like auto runner v2. Then i see your post and i will choose that template. Thank you again.
Last edited by inanakmugan on Mon Feb 09, 2015 10:44 pm, edited 1 time in total.
B
8
S
2
G
1
Posts: 6
Reputation: 728

Post » Mon Feb 09, 2015 10:34 pm

gamecorpstudio wrote:you need to have those events to assure the charachter doesnt leave the screen or moved to much in left side, because is not him who moves but the grun tiles, so on hit the tile will trigger the slightly movement forward of the charachter . u should not play to much with that unless u know what ur doing.


Actually making game with C2 was an after work hobby for me. Then i realise i really like learning this game development approaches. I am spending most of my time at event section and try to understand them. So i am enjoying to trying new things and modifying this templates. My main point is going deep at game development and learn as i can. Thank you for answer.
B
8
S
2
G
1
Posts: 6
Reputation: 728

Post » Tue May 17, 2016 4:52 pm

inanakmugan wrote:@MrGoatsnake

Thanks for detailed explanation.

And your answer is what i am looking for. I try to add something to C2 template for increase difficulty further of game. so i create an event, when totaldistance reach 10000 speed increase to 400. Then at that speed i realise when you jump, player move a little bit right. But when you jump 100 times player almost reach middle of screen. Than i realise player is moving all speeds. It's not stable at C2's stock template too. I'm thinking about make something like auto runner v2. Then i see your post and i will choose that template. Thank you again.

First of all, I'm terribly sorry for bumping such an old thread, but did you ever find a solution to this?

Or did you end up using the auto runner v2? Because the link to Auto Runner V2 doesn't work anymore. If you found a solution and wouldn't mind sharing it with me, I'd gladly appreciate it :)
B
9
S
2
Posts: 9
Reputation: 676


Return to Beginner's Questions

Who is online

Users browsing this forum: purefabulousity and 1 guest