haxegon / zeedonk

Haxegon + Puzzlescript = Zeedonk!
http://www.zeedonk.net
12 stars 2 forks source link

Random.int() crashes flash version of Zeedonk #419

Open TerryCavanagh opened 9 years ago

TerryCavanagh commented 9 years ago

Kind of a low priority thing, but the reason why a flash version of Zeedonk doesn't currently work is because this program:

trace(Random.int(0,10));

Will crash the flash player. Can't figure out why.

TerryCavanagh commented 8 years ago

Alright, tried both of these approaches:

interpreter.variables.set("Flashrandom", Flashrandom);

didn't work

interpreter.variables.set("Random", haxegon.Random);

didn't work.

In fact, Anyclass.int() seems to cause a crash. Changing int() to a different function name fixed it. I'd rather not rename Random.int(), but that would fix the problem...