Better Stack Beams?

I unfortunatly need to keep it to be like “beam = 1” “Plasma = 0” “Wave = 0” and switching to 1 when I get it… the problem is, Ik how to make it “work” but the projectile created isnt the good one even if it’s all in a group called beam… and I don’t know how to specify that for exemple, when beam = 1 plasma = 1 = create “group beam” to x and y position that it is asociated with plasma_beam

1 Like

IDK if I can help further. At least not now. If I think of something I’ll post. In the meantime, maybe someone more familiar with the game or the mechanics can help you.

1 Like

Okay, thanks anyway ! That gave me some ideas ! :slight_smile:

1 Like

If you’ve a number of combinations of attributes that make a beam, then maybe an array of structures with the values of each attribute as a child and the beam and flare names (plus other attributes) as those children’s sibling - something like:

image


Every time a powerup is collected you’d have to iterate over each child, check that all the attributes match the powerups collected and set global variables for the beam and flare names (and whatever other attributes you need). Something along the lines of: