How do I handle a perk system?

Get help using Construct 2

Post » Sat Jun 21, 2014 4:04 pm

I'm implementing perks into my game and was wondering whether the should be handled by an instance variable, local or global variable.

Players earn points which they can spend on perks between levels. Atm, when player picks a perk, an instance variable (boolean) gets toggled on the player object. On restart (after death or on new game) the IV's get reset to false.

Is this the best way? Would it be better to handle perks with LV/GV's? would it even make a difference at all?

Just curious!

Thanks!
B
7
S
2
Posts: 51
Reputation: 627

Post » Sat Jun 21, 2014 6:22 pm

I would use global. I don't think instance variables would work for what your wanting to do.
B
22
S
3
Posts: 67
Reputation: 1,124


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests