Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Bomnbs Screw Up (Bomberman Game)
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Bacchus




PostPosted: Mon Jan 17, 2005 10:10 am   Post subject: Bomnbs Screw Up (Bomberman Game)

Im making a Bomberman game for my ISU, you kno, the old retro one when you go around and just blow up the blocks to get items and then blow up your opponent. but all has been going wwell untill you place a bomb and when it blows up you press the place bomb key again. for some stupid reason it keeps the number of bombps placed increased by one. its probably some stupid reason that i just keep skipping over but i cannot think for the life of me. any sugestions would be good too
Sponsor
Sponsor
Sponsor
sponsor
Bacchus




PostPosted: Tue Jan 18, 2005 5:36 pm   Post subject: (No subject)

hm.. i kno this is probably a bit to early to bump it, but this bug is really bugging me (that one and also for somereason when their in certain place they can move one way) and ive only seen 7 view on this post. i would be eternaly grateful to who ever help me. and i guess i can spare bits Smile ty
Bacchus




PostPosted: Tue Jan 18, 2005 9:54 pm   Post subject: (No subject)

ok disregard! i fixed it! in case anyone needed to kno i just checked for when they placed a bomb if another bombs timer was at 1. not sure wat was wrong and wat made it screw up but it works now. i just changed this proc
code:
proc drop_bomb (var player : vars)
    var drop_bomb:int:=1
    if player.bombp < player.bombn then
        for i:1..player.bombn
            if player.bomb(i,3)=1 then
                drop_bomb:=0
            end if
        end for
        if drop_bomb=1 then
            player.bombp += 1
            player.bomb (player.bombp, 1) := player.x
            player.bomb (player.bombp, 2) := player.y
            player.bomb (player.bombp, 3) := player.fuse
        end if
    end if
end drop_bomb
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: