Setting same properties for all created platforms

Get help using Construct 2

Post » Sat Feb 09, 2013 8:33 pm

Hello guys, first time here and I kinda need your help!

I'm working in one of those slideing games, such as the old Yet Sports where you had to hit a penguim and see he slowing down over time.

For this Contruct 2 project, I'm moving the platforms (bullets) instead of the player, like in ine of those infinite runners.

Problem is: everytime I create a new platform (bullet), it came with reseted speed and acceleration. What I want is to start, lets say, with a velocity of 1000 and decrease the acceletarion by 10, until it comes to a halt (unless it hits a bonus sprite that makes it go faster againg).

I can do that fine of one platform, but the next ones start coming with reseted values. In the end, I get a set going on with the same velocity forever.

Do I need to use a global variable to do this? This is my first game, and I'm trying to figure how it works.

Here is the file: http://indiegamers.com.br/teste/teste.capx

Thanks in advance!
B
6
S
1
Posts: 9
Reputation: 798

Post » Sun Feb 10, 2013 10:23 am

Try this

testspongehammer2013-02-10 19:36:02
B
45
S
15
G
9
Posts: 1,096
Reputation: 11,038

Post » Mon Feb 11, 2013 8:29 pm

Right on target! Thanks spongehammer, that solved my problem!

B
6
S
1
Posts: 9
Reputation: 798


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 19 guests