
November 9th, 2000, 12:09 AM
|
|
Junior Member
|
|
Join Date: Nov 2000
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
I have developed a javascript slot machine,
and have problems with my program flow.
everything works well for a while, and then I hit a certain win type and my bank value turns into a string, and the new winnings are concatenated, "joined"
mybank = 120,
I win 5,
and mybank = 1205
rather than 125.
and it throws off the game. The bank value is displayed in a input type=text, so you can watch the error happen. any suggestions? Also, if anyone can tell me of a better way to check for winning wheel combinations, I'd like to hear them.
heres the URL , the scripts about 9 pages long so I thought this would be better than pasting it here. http://www.njgallanis.com/John/javascript/SlotVersion70.htm
|