i have my hero character being able to shoot a laser from the canon. how do I add a energy bar for the laser canon that depletes after 10 shots and then have it so that you can pick up a laser canister and it refills the energy bar and allows for 10 more shots. how would I go about making that?
hello guys and gals, i'm currently working on a game and programming is going well but I have run into a problem. I have a highway sign over my highway that starts at the top of the screen and moves downward (helping with the illusion that cars are moving) and once it gets to the bottom of the screen I have it go back to the top. i'm wanting to fix it so that it still does this, but it will come back down at a random time.
so for instance, the sign travels down, reaches the bottom and then goes back to the top, but it holds a few seconds from coming back down. then the next time it starts to come down, it will hold for 10 seconds, the next time 5 seconds, time after that 8 seconds. I just need a way to make it come down at random times so that the sign doesn't get too repetitive.
i have a bomb, when it's struck by the character i want it to start flashing and then after about 1 second, have it explode.
so the bomb is just sitting there, then you strike it, it starts flashing and then explosion animation starts...but the animation keeps going, it doesn't stop. also, how do i add damage upon the explosion?
i have a object, a moving platform that moves between two wall objects and when it collides with wall it bounces back and starts the other direction and this repeats itself both directions. however, when the main character jumps on the object, the platform stops moving...how do i make the platform move back and forth to transport player?
i got a health bar and score hooked to a object controller, when my main character runs i have the screen pan but my health bar and score stays behind. i have the controller set to -999999999 on depth and also have it set to persistent...how do i get it to stay put on the screen?