Question about how to implement bombs into a game
jmal0024
Posts: 11
I am trying to create and implement bombs into a game. I am using something similar to the one-character demo created by OBC and I'm trying to figure out how to get the character to drop a bomb and have it explode such as in the Hydraman game.
Comments
It might help to diagnose the problems you are having if you could post the code you have, or at least the area(s) where you are having the most difficulty.
in breif, what you would need to do:
1) trap the key/button press event for the bomb being dropped
2) set the x and y position of the bomb
3) set a countdown timer for the bomb
In your main game loop, you would then want to decrement you countdown for the bomb(s). When they reach 0, then have your 'boom' event.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit the Propeller Powered SIG·fourm kindly hosted at Savage Circuits
Game(s) Mythic Flight
Utilities Font Editors (AIGeneric, Potato_Text, etc.)