rich 2610 Posted May 28, 2014 Report Share Posted May 28, 2014 Hi all, "Flash to Phaser is a JSFL script that will aid in the process of laying out scenes within the Flash IDE and converting them into Phaser JavaScript files. It works by parsing the Stage for any Bitmap or Symbol objects and then automatically builds-up a JavaScript source file including preload and create functions that accurately re-create what is seen inside the Flash IDE. If the script encounters a Symbol it treats it as a Phaser Group and uses the Symbol name as a Group name. Any Bitmaps within the Symbol are treated as Group children and positioned accordingly. Objects have their x, y, rotation and scale properties re-created in the JavaScript." http://www.photonstorm.com/phaser/flash-to-phaser-jsfl-script Arlefreak, turnA and Mike 3 Quote Link to post Share on other sites
turnA 21 Posted May 28, 2014 Report Share Posted May 28, 2014 Thanks Rich! Now that another thing that extend my Adobe Flash usage! Now I mainly used my Flash tool for vector graphic and custom level editor. Quote Link to post Share on other sites
Mike 56 Posted May 28, 2014 Report Share Posted May 28, 2014 If it only did the preload code, It still gonna make me happy. And maybe a important point is the support and: It only supports Bitmaps and Symbols. so questions about: "I drawed a cute character but it doesn't show/export" will be skipped. Quote Link to post Share on other sites
george 81 Posted May 28, 2014 Report Share Posted May 28, 2014 Regarding the cute vector character. Maybe you could use 'document.convertSelectionToBitmap' to convert vectors into bitmaps? I just googled that method name because I used this function lately in Flash CC by context menu to create some bitmaps from textfields. Would be good for mocking purposes- maybe not that good for the final game from the view of the filesize. Anyway, very nice idea to use jsfl to create the phaser states!Regards George Quote Link to post Share on other sites
rich 2610 Posted May 28, 2014 Author Report Share Posted May 28, 2014 I did consider that, and something similar for Text fields, but ultimately decided against it. I think because I couldn't figure out how to give the generated bitmap a file name in order to get the preload section correct. I figured it's open source, easy to edit, so other devs can get busy with it It is also probably worth extending to support multiple layers too, but it doesn't right now. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.