Thread: Bombs on Gmap
View Single Post
  #6  
Old 03-19-2012, 06:24 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by Mark Sir Link View Post
you should

A.) check the player has enough bombs before placing it
B.) reference the object to whose x/y you're referring (player.x, player.y);
C.) add else statements between each if so 4 evals aren't made every time.
D.) player.bombs -= 1;
You may or may --^
not be able to see the bold here.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote