Quote:
Originally Posted by callimuc
seccond thing: watch your if() statements
|
To clarify, he's talking about stuff like this:
PHP Code:
if (player.canjump = true){
A single equals sign is used for assignment. A double equals sign is for comparison. GS2 tolerates misuse to some degree (it shouldn't...) which is why your script still works, but you should instead do:
PHP Code:
if (player.canjump == true){