I’m currently making a remake of a metroid game, so i’m trying to stack my beams for exemple:
You start with the power beam (refered as“pw_beam”)
I want that when u take the power up (refered asi_beam_obj) for getting ice beam (refered asi_beam),
it replace the standard “pw_beam” with "i_beam"
I tried many way to do that like : adding a new object, or replacing the first animation with the second one (all beams stacked in one entity) etc…
But my second question is: if I have no choice to stack’em all in the same place, could I change their value ? (damages, go thru walls etc… ?)
what did you mean by that? Did you mean upgrading? If yes then you can make a variable, maybe an object variable. At the beginning of the game(not scene), change the variable to 0. When the variable is 0, give Player a pw_beam, and if 1 then give Player an i_beam.
I changed it by “Global Variable”
But when i transite to the next scene, when i take the upgrade, i lost it when the scene change…
How can i fix this ?
I know it’s not “At the begenning of the scene” to be there but something like “At the start of the game” but i dont find it…
Nevermind, i found a way, i just change the “At the begenning” by :
The boolean value of Beam is False - Change the Global Variable of Beam = 0
Thx for the help !!