Arcade is now k-r-A-Z!!
reply to calling variable from new World subclass
By Alwin_Gerrits - 15 minutes ago
So then does that mean it's like variables you declare as a global variable? I think there has to be a difference, but it's vacation here so I can't really bother my teacher about it and class has been going to slow to get to this subject yet -_-. I guess regardless of my lacking knowledge, I'm not beïng very clear about what i'm trying to do. So here's the scenario: I'm making a platform game where the player can pick up certain items to get a powerup. What I want to get done is that when the player has a powerup and is moving to the second level he doesn't lose his powerup. My method 'Fire' up until not contained nothing but the boolean canFire which would determine whether the player picked up the powerup that lets him fire. I guess that's all i'm trying to do right now... i'll try looking into static and final myself, but plz your vision on how to take down this problem i'm having.
davmac wrote...A static variable is a variable which belongs to a class instead of to instances of the class.