Generally, finding solutions, for me, involes several minutes of googling and then a few copy/pastes. This isn't to say I don't learn much, but its how I initially solve my problems. Sometimes kirupa.com is absolutely no help. Being told over and over and over that I'm a Masta Flash Programma is just gimmicky and proves to piss me off when I'm frustrated and in search of answers. But its a nice alternative to the endless sea of no-clue hobbyists who like to step in on message boards with their "advice" and make things MUCH MUCH WORSE.
There is one thing that was NEVER covered in class, or on the wiki, which is this little gem that I found through personal experience and much trial and error... During the "if" part of if statements, "=" works consequently, like it would as a straight up statement. It takes "==" to say "if this equals 4, then that explodes." Like so...
if (yellow = true){
score += 5;
}
says "Yellow equals true." Whilst what you're really looking for is...
if (yellow == true){
score += 5;
}
Which says "If yellow equals true, blah blah blah..."
Just a fun little tidbit, Ben's surpassed me at this seemingly overnight and I corrected him on that the other day. Fun stuff...
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment