How do I add coins infinite runner?

Get help using Construct 2

Post » Mon Mar 06, 2017 11:02 am

Hi

im using the template infinite runner example from c2

how can i add also infinite coins in that template???

thanks
:D
B
37
S
15
G
7
Posts: 1,682
Reputation: 9,616

Post » Mon Mar 06, 2017 11:10 am

There are a few ways to do it but I used the bullet behavior for the coins and set them to the same speed as your platforms and use a random X and Y coordinate to adjust where they start off screen.

Destroy them when they hit the other side and create them in a new location on the side they enter.

You can also randomize the time between when they are created so their is no pattern for the player to predict.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Mon Mar 06, 2017 1:05 pm

its very hard to get the coins appearing from the left side :s can you help?
actually my coins are created and appear inside the level :s
B
37
S
15
G
7
Posts: 1,682
Reputation: 9,616

Post » Mon Mar 06, 2017 1:10 pm

imothep85 wrote:its very hard to get the coins appearing from the left side :s can you help?
actually my coins are created and appear inside the level :s


I would have to see your CAPX to help.

Basically you create a coin at a random position using the X and Y coordinate and it will travel what ever direction you have set in the bullet settings. Then you destroy it using the X setting when it reaches the opposite side and create it again on the start side.

If they are appearing inside the level it sounds like you need to change the X coordinate to be outside the layout when they are created.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Mon Mar 06, 2017 2:21 pm

il solved it :D thanks :D
B
37
S
15
G
7
Posts: 1,682
Reputation: 9,616


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider] and 24 guests