ForumsProgramming ForumI/O system in armorgames

6 5388
ripiz2
offline
ripiz2
11 posts
Shepherd

Hi, for me IT industry is I/O , you always give something for pc , and he pays you back with info. But now i just kinda ..... emmmmmm missed a big thing. you see i made my game about 70% and only now i thought how user will load for example images for sprites?i use pure action sript 3 and work with FlashDevelop. right now i make loader object to get my image from my pc and use it. But it only my pc , and user wont use my pc(yes , my dumb head only realized this in this stage of developing). So my main question how does look like a proces of "giving game to AG" and do i need to change some code(heard of so kind of sockets).

Also question about saving. know that there some kind of object(dont remember name right now), that can save a little info on pc while playing a game. this object most of the time used for saving system in game to know at what stage you are to come back and continue, but again this little object makes data file on users pc and i wonder maybe i need to save data on AG server for proper game saving. anyway hope you understood , and pls dont be mad if you dont . know that maybe you see some madness like "" wtf this noob is talking about"" but if you dont it could be good to hear some hints.

Some code to help understand problem(used part of Crate class)

loader_crate is a

public var loader_crate:Loader = new Loader();

https://gyazo.com/3171a2cf159bc93482340461dc0cb1d1
https://gyazo.com/8b875f0373390f6e692f373b9432562d
https://gyazo.com/82045e3babd3b326cb7e2461c197ee92

  • 6 Replies
FishPreferred
offline
FishPreferred
3,171 posts
Duke

About Saving:
Flash games save to the #SharedObjects file. I think the default location for a PC is in your user folder under \AppData\Roaming\Macromedia\Flash Player\

Otherwise, I don't know where it would be.

Doombreed
offline
Doombreed
7,022 posts
Templar

PC is in your user folder under \AppData\Roaming\Macromedia\Flash Player\

To add to what FishPreferred said, if you are using Chrome, it may be under Users\*user*\AppData\Local\Google\Chrome\User Dat\Default\Pepper Data\ShockwaveFlash\WritableRoot where *user* = the username

ripiz2
offline
ripiz2
11 posts
Shepherd

thanks for tips guys

Hectichermit
offline
Hectichermit
1,828 posts
Bard

I think you have to embedd the assets in the game there is a specific set of code [Embed] is one that stores the data for as3 when you compile it. Basically you embed an image into a class and then use that class to call that image. As for the developer side there is a developer section to armorgames that you must talk to the admins about to gain access. Best done via email. Once there you will get the api specifically for armorgames.

ripiz2
offline
ripiz2
11 posts
Shepherd

thanks for tip, and so bad my worst scenario with ""embeding"" came to be true... oh well seems i will need to program a little more . ty again

EDIT: oh wait i read your message again and Wut?! a secret more deep forum for developers? i thought i write in it right now ?!?!?

Hectichermit
offline
Hectichermit
1,828 posts
Bard

I do not think its really a forum but theres a "Developers" link up at the top header

Showing 1-6 of 6