Shop OBEX P1 Docs P2 Docs Learn Events
Question about how to implement bombs into a game — Parallax Forums

Question about how to implement bombs into a game

jmal0024jmal0024 Posts: 11
edited 2010-04-28 19:30 in Propeller 1
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

  • trodosstrodoss Posts: 577
    edited 2010-04-28 19:30
    Saw the PM on the Propeller Powered forum about this/other issues as well.

    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.)
Sign In or Register to comment.