rich Posted May 28, 2014 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, Mike and turnA 3 Link to comment Share on other sites More sharing options...
turnA Posted May 28, 2014 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. Link to comment Share on other sites More sharing options...
Mike Posted May 28, 2014 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. Link to comment Share on other sites More sharing options...
george Posted May 28, 2014 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 Link to comment Share on other sites More sharing options...
rich Posted May 28, 2014 Author 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. Link to comment Share on other sites More sharing options...
Recommended Posts