This site requires JavaScript, please enable it in your browser!
Greenfoot back
ferdyraw
ferdyraw wrote ...

2023/10/25

RuntimeException - (JavaScript) ReferenceError?

ferdyraw ferdyraw

2023/10/25

#
Please check my game Max Runner. Why I get (JavaScript) ReferenceError? We use Java, but I got JavaScrpt error? Is this only Greenfoot error ?
Super_Hippo Super_Hippo

2023/10/25

#
You are using the “java.awt.Color” class which isn’t supported on the website anymore. Use the “Greenfoot.Color” class instead. (Maybe there is more, but that’s one thing for sure.)
ferdyraw ferdyraw

2023/10/25

#
How about the "java.io.*" class? Is there something wrong with my code in Highscore and Counter class file?
danpost danpost

2023/10/26

#
ferdyraw wrote...
How about the "java.io.*" class? Is there something wrong with my code in Highscore and Counter class file?
No -- there is nothing wrong with your code. However, in javascript, you cannot write to any files. This is a security thing.
ferdyraw ferdyraw

2023/10/26

#
OMG. Finally my game can be played. You're my hero! Thanks a lot for your help.
You need to login to post a reply.