I’m working on a game where i want to have different states, or modes of running. First you start running by holding down the shift key, but is it possible to make it so that after say 15-30 seconds of running you can tap shift, maybe once every 1-2 seconds to run faster. I suppose i could use properties to set the modes, and use intervals of a timer, but need help scripting the tapping.
Also I would like to add a overheating system to the weapon, expanding a circle every time you shoot, and having it decrease in size when you don’t. So far I’ve tried using a shape key, I can’t figure out how to scale an object in the bge (can that be scripted?), which poses problems for the collision (when it has reached a given size). The circle only expands enough if you hold in the mousebutton, turning on tap in the mousesensor didn’t help.
Any help is greatly appreciated, thanks in advance:)