How would I make something like a high scores function on a java applet? Like how would I record the score the person got and then access later?
Hawkpath -2 Junior Poster in Training
Recommended Answers
Jump to PostWhere do you want to save the scores? Do you have a server and a database?
Jump to PostThis is a pretty difficult problem, actually. The applet security model is based on the applet running in total isolation, so it can't really communicate with the world. There is a way to do it, but it's very clunky and really a last-ditch solution. I understand that servlets offer some …
Jump to PostIn other words, if your player closes the browser window and returns, his high scores are gone, if you just rely on methods within the applet.
(It's also possible to run as a "trusted" applet - I've never looked into this, because it never seemed very promising to me, …
Jump to PostWould it be possible to store values in a text file on my computer and access them through the applet?
Yes. You can set it up so that you can write on your computer with your applet.
All 13 Replies
NormR1 563 Posting Sage Team Colleague
jon.kiparsky 326 Posting Virtuoso
tong1 22 Posting Whiz
Hawkpath -2 Junior Poster in Training
tong1 22 Posting Whiz
jon.kiparsky 326 Posting Virtuoso
Hawkpath -2 Junior Poster in Training
jon.kiparsky 326 Posting Virtuoso
tong1 22 Posting Whiz
jon.kiparsky 326 Posting Virtuoso
tong1 22 Posting Whiz
robertsmith632 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.