Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-11-2002, 04:49 AM   #1
Registered User
Join Date: Aug 2002
Posts: 48
Arrow Another Game questions, might be useful for gamers.

I've been reading the forum threads and came across some saving questions for games, no comes my question.

Forexample, if i was making a platform game with levels once u reach a certain point, i want to make the level change once u get to the other side of the stage, (that is easy enough to do), then, once u reach the next level the text "level2" is displayed in a dynamic text box somewhere on the screen, now, the question.

Is there a way so that when u get the level 2 flash will automatically save a text file to the same directory the swf is located and the .txt file has in it;

myLevel=(level reached eg."level2")
myPoints=(points gained eg."34000")
myUser=(whatever user logged in?)
--- those 3 variables will have allocated dynamic text boxes,

now to my 2nd question, (yes or no) can u make a load button at the beginning of your .swf movie, when clicked loads the information from the external .txt file and takes you to that level with the level score.. eg;

.swf opens with a input text box,
if u put in your name and press load
flash gets the variable from the text file and takes you tothat level

if (myUser="john") {
open text file. and get otehr variables..
if (myLevel="level2"){
(excuse the poor action script it is just an eg)
is that possable?

and the last question..

if that file is not local (stored on the internet n not hard drive)
is tehre a way that the name an level n all can be saved ?
so taht the user can play with his level when wanted ?
(just like a score listing but difernt..)

thank you.
Mutty is offline   Reply With Quote
Old 08-11-2002, 05:12 AM   #2
ActionScript.org Founder
Jesse's Avatar
Join Date: Nov 2000
Location: New York
Posts: 8,736

Check the Shared Objects tutorial. That's probably the best way to do it.

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 07:54 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.