• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

c++ help!

Hmongkeysauce

Senior member
hi folks,
im writing a game for a class project using the allegro game library. im about done except there's one little tidbit thats bothering me. when pressing the 'F' key to fire once, multiple bullets would come out instead of just 1. i installed an allegro timer to help adjust it, but it seems to be not working as desired. im wondering if there are any c++ functions that would be able to do this? meaning: read a key, then if x amount of time has not passed, the same key would not be read. i think that should work, but i don't know if there's such a function in c++ or allegro. any help would be appreciated. thanks!

 
Originally posted by: Hmongkeysauce
hi folks,
im writing a game for a class project using the allegro game library. im about done except there's one little tidbit thats bothering me. when pressing the 'F' key to fire once, multiple bullets would come out instead of just 1. i installed an allegro timer to help adjust it, but it seems to be not working as desired. im wondering if there are any c++ functions that would be able to do this? meaning: read a key, then if x amount of time has not passed, the same key would not be read. i think that should work, but i don't know if there's such a function in c++ or allegro. any help would be appreciated. thanks!

Write a function to compare time before activating the functionality of a button that needs limiters.
 
You have it wrong, this is a new feature with your most advanced version of the game. More bullets = more challenge = more fun!
 
Originally posted by: dullard
You have it wrong, this is a new feature with your most advanced version of the game. More bullets = more challenge = more fun!

Bugs are merely extra features.... brilliant! :laugh:
 
Originally posted by: Aikouka
Bugs are merely extra features.... brilliant! :laugh:
Yep, now all that is needed is a simple instruction manual change to reflect the additional firepower.

 
Originally posted by: dullard
Yep, now all that is needed is a simple instruction manual change to reflect the additional firepower.

Nah, either we release it as a piece of paper with "manual change" on the top or just consider it an obvious easter egg. Changing manuals is a costly maneuver that will make us go over budget!
 
Back
Top