-
M.D.
[AIR] FlashEdit - Tilebased Map Editor
hello
been working on a tile editor in Adobe AIR for the past 3 days.
3 days of fun (extreme sarcasm)
anyway, I think its at a stage where people can do some beta testing. Please post any bugs if you wish to test. Hopefully there shouldn't be any in this simple version.
Note* most functions are not working yet, such as:
clearMap
resizeMap
toggleGrid
export as2 class
export as3 class
export text
flood fill
selection
duplicate layer
undo
redo
but you can do everything else. Currently trying to create a better save dialog box which creates the extension for you. Right now, you need to save a map with the correct extension (.fem)
I would really love to know the fps you guys get (bottom left) currently its very unoptimised, some people would have a fit if they knew the rendering method I'm using. It has potential to be real bad given enough layers and a small tile size and large map window. Will need to fix that in the future
basically, I go over every layer in correct zOrder, loop through its onScreen tiles, and copy the correct chunk from the tileset into a bitmapData. So you can see it could get very bad, I have limited the min tile size to 16 so peoples computers don't die. The good thing is I dont need to copy bitmaps every time mapData changes, just modify array values and the rest sorts itself out. And I only need 1 display bitmap.
anyway, blah blah blah, here's the setup file, If you dare
you will need the runtime to install - http://labs.adobe.com/downloads/air.html (beta2)
EDIT - I have no idea how this looks on a Mac, so it may not work correctly, I have tried to follow all the steps to support them.
Last edited by mr_malee; 11-13-2007 at 05:38 AM.
-
Half Empty
That's great dude. Really cool. I probably got an average frame rate of 100 fps, with photoshop and flash running in other windows while working on a 40x40 map. (pentium 4 3.6GHz, 3GB ram).
I didn't find any obvious bugs.
I'm definitely going to have to look into air. Is it really that much of a ***** to work with?
-
M.D.
actually no, its really good, I use the plug in for CS3, haven't used flex.
The only thing which I found hard was not understating windows. For about 1 day I struggled creating those scrollPane windows you see as built in Native Windows, only to find that the windows you create cannot be placed above your main application window, I then ditched them and created scrollPane's inside one window. Only to realize then that I could have closed the main application window and kept the other custom ones open.
All in all it was just a pain figuring out how these new things work. Same as BitmapData really. I still don't know it all though. I recommend you try AIR, it was super easy to get an app started.
There is a bug right now, the windows I open (new map) (layer properties) are not closed when the application exits. So anyone using, be weary of that.
A cool feature is the ability to register a file type to your application, so you can double click a .fem file and it'll load up the application (not working yet) and I think its also possible to create an app which updates itself, not sure about that though.
Oh, and it is oh so easy to read and write to the hard drive. Thats the best feature by far.
Whats peoples opinions on AIR? do you trust it?
Last edited by mr_malee; 11-06-2007 at 07:27 AM.
-
Script kiddie
The Mac version of the AIR installer won't uncompress. Using third-party decompression apps I was able to whittle it down to just the .dmg, but that refused to mount. Maybe it's a Leopard thing (I got a new computer. Squize, if you're listening, it runs Polarity a lot better than my old one )?
-
Hype over content...
Cool ( To both Polarity running more than 8fps, and for Mr M doing the AIR thing so he can explain it all to the rest of us ).
Funnily enough I've been working with Mappy loads the past 2/3 weeks and my mind drifted to doing a map editor as a way to learn air.
Think I'm being pipped at the post with everything recently, I need to be less lazy and actually just make things rather than thinking about them.
Squize.
-
M.D.
thanks, seriously, AIR is so easy with CS3, its like just like using components except their not buggy.
check out the bottom left panel - http://livedocs.adobe.com/labs/air/1/aslr/index.html, any items with a adobe air icon are new. I really realyl want to use the clipboard, for CTRL+Z undo action and possibly copy and paste. So many ideas...
good thing too, is that if you want to update the app, you dont need to uninstall and re-install the new package, the package will realise it needs updating and do it for you. Or you can manually update using the Updater class
-
Pumpkin Carving 2008
Yeah.... **** me. I should scrap the progress of my map editor, Flash Mapper, and move over to air like someone suggested in the thread for said editor. Of course, if I didn't love my sweet menu/window classes I used in it, I would be less hesitant to move it over to air. Not even sure how air works though, but could be fun. In the meantime I'm taking a long (probably too long) break from flash. Got my last semester at college for my Associates in Applied Science right around the corner, and going to distance myself from outside distractions for a few months. If I do any coding in flash, it will be simple, though useful, applications instead of games.
Errr enough of the tangent but yeah, looking good Malee, though I have a feeling your editor is going to undermine the big one I vowed to make for universal map editor (ya know, iso/grid, xml/txt etc). Err...
Last edited by ImprisonedPride; 11-07-2007 at 02:21 AM.
The 'Boose':
ASUS Sabertooth P67 TUF
Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
8GB G.Skill Ripjaws 1600 DDR3
ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
New addition: OCZ Vertex 240GB SATA III SSD
WEI Score: 7.6
-
Yes we can
-
Pumpkin Carving 2008
Malee you sold me out... ow.
-
M.D.
hahaha, get passed them packages and we'll talk
-
just dropping a line to get a subscription to this thread. a screenshot in the first post wont hurt as you don´t provide a instant online demo
Last edited by renderhjs; 12-03-2007 at 09:53 PM.
-
Yes we can
yeah, you´re right, here you are
-
FK founder & general loiterer
downloading now... can't wait to play with it
-
Yes we can
sweet, hope you like it
-
FK founder & general loiterer
Can I have Transparent Tiles for overlaying please!
ps LOVE the brush...
can I have a brush fill too as well
-
M.D.
you mean layer transparency? that could be good
Tom's the flood fill guy
-
FK founder & general loiterer
oh and also can I have an image upload so that I can have a reference image ti lay tiles over eg my rough pencil drawing...
And can it write my next game for me... Im thinking with pathfinding across variable height terrain.....
-
Yes we can
-
FK founder & general loiterer
I want to assign collision reactions based on a tile type (for my purposes I have an image like
that I use as tiles to paint over my map.
I want to be able to assign a parameter at the tilesheet level... I mean I guess I can just identify the tile at the parsing level but you know while I am making requests...
-
Yes we can
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|