Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-19-2010, 03:09 PM   #1
Navy_Spitfire
Registered User
 
Join Date: May 2008
Posts: 16
Default A way to get/save x/y coordinates

I was wondering if there is a specific way to get or save the x/y coordinates of a movieclip at a given time, ie- at 5 seconds the game saves the locations of the player, so if they die, they are sent back to the saved coordinate.
Navy_Spitfire is offline   Reply With Quote
Old 12-19-2010, 05:03 PM   #2
Heloed
Member
 
Join Date: Aug 2008
Posts: 97
Default

Do you want it saved within a session or saved so it can be recalled even if the game is closed and reopened?

Within a session is simply storing the point as a variable. If you want to save more than one then just create an array and .push each new point into the array when you want a 'save'.

If you want it saved saved you should look into shared objects. They are fairly simple and are a must-have for most actual flash games.

Last edited by Heloed; 12-19-2010 at 05:07 PM.
Heloed is offline   Reply With Quote
Old 12-19-2010, 11:17 PM   #3
Navy_Spitfire
Registered User
 
Join Date: May 2008
Posts: 16
Default

Thank you, just the information I was looking for.
Navy_Spitfire is offline   Reply With Quote
Reply


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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:13 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.