I can't understand auto-runner template events.

0 favourites
  • 8 posts
From the Asset Store
Fruit Slicer Template & Quality fruit and slice graphics (c3p,png,illustrator files)
  • 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?

    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?

  • 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.

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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."

  • 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.

  • 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.

  • 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.

  • 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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)