Quantcast
Channel: Answers for "Adding "Air" on a collision"
Viewing all articles
Browse latest Browse all 4

Answer by DFledermaus

$
0
0
The problem is line 23: var addair = air - 10; You're using 10 instead of maxair (which is 10, but that will cause problems if you ever decide to change maxair) but you also have them in the wrong order. Replace that line with: var addair = maxair - air;

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images