Can't Upgrade Weapon / Bullet

Get help using Construct 2

Post » Sun Feb 19, 2017 1:02 am

Hi!

So i have a Fireball animation that i spawn from my character. The fireball instances that are created when i shoot don't update.

Fore example:

I pick up a special on the ground that is supposed to add +1 to the power. It only is effecting the original fireball animation, not the spawned ones.

Any help would be great!
Image
B
21
S
6
Posts: 40
Reputation: 1,357

Post » Sun Feb 19, 2017 4:07 am

my bad english
you want to increase speed of bullet? when you get powerup
Image
B
68
S
40
G
48
Posts: 680
Reputation: 34,066

Post » Sun Feb 19, 2017 6:58 pm

Sounds like you need a global variable to tell the spawned fireballs to react.

FireballReact=0

On PowerUp collected set FireballReact =1

On spawn Fireball: Set Fireball to new power level
FireballReact=1

Something like that.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,800

Post » Mon Feb 20, 2017 7:57 pm

Ill give it a try, thanks guys!
Image
B
21
S
6
Posts: 40
Reputation: 1,357

Post » Tue Feb 21, 2017 12:21 am

Looks like it worked.

I added a Function and related all of the upgrade options with Global Variables and just called the Function when i wanted to fire a weapon. Thanks!
Image
B
21
S
6
Posts: 40
Reputation: 1,357

Post » Tue Feb 21, 2017 12:22 am

chimchase wrote:Looks like it worked.

I added a Function and related all of the upgrade options with Global Variables and just called the Function when i wanted to fire a weapon. Thanks!


Right on!
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,800


Return to How do I....?

Who is online

Users browsing this forum: koops, Slug101 and 7 guests