Be a Supporter!


Main News Movies Games Art Favorites Reviews Stats 85 Fans
Follow Gimmick
  • Add Friend
Age / Gender:
16, Unspecified
All Stats >

User Statshot

Community Stats
Level 27 Programmer
Silver Whistle
Ranked as General

Contact Info / Websites

Latest News

Update as of 5:56 AM, 11/21/2014: I've not forgotten this project! A lot of progress has occurred in this so far, although that could be due to feature creep, since this project is technically 'finished' :v

So for a few days I've been working on a little hitboxing tool after I saw a post in the flash forum by @PsychoZombii requesting any hitboxing tools. There weren't many apart from Hitboxer, and I saw it as a challenge.

What is a "hitboxing tool"? 

A hitboxing tool is basically an application that allows you to draw hitboxes on any spritesheets that you import, and exports the resulting hitboxes in some file. The one I'm working on has the option of exporting it to XML.

That's really basically it. Sounds simple and yes it is. (Edit: ...although feature creep is slowly, um, creeping in...)

Features so far:

  1. Import spritesheets and split them up into rectangles (frames)
  2. Add/remove hitboxes
  3. Export to XML
  4. Preview animation and step through frames
  5. S̶o̶m̶e̶ ̶s̶o̶r̶t̶ ̶o̶f̶ ̶a̶ ̶u̶s̶e̶r̶ ̶i̶n̶t̶e̶r̶f̶a̶c̶e̶  Well it's become better now; I've skinned the buttons to be flat instead of the default beveled style because it's simple and I'm no artist. I may make skins available for that sort of thing if users prefer it in the future, though.
  6. Scroll wheel zoom
  7. Better XML support -- mostly backend stuff that will make it easier in the long run.
  8. Box tags and names. Tags are added as children of the <box> tag, rather than properties of the <box> tag so as to reduce clutter. Names are properties of the <box> tag itself, like so: <box name='foobar'>
  9. Namespaces in the output XML -- if the box tag has children, the property 'xsi:nil' is 'false'. If not, the tag ends with '/>' and has 'xsi:nil' set to 'true'.
  10. Timeline support -- I now have a layer system similar to Flash's layering system, with frames and all. I plan to include multiple layer support as part of the timeline and different nodes for different layers; this could be useful for creating multiple hitboxes for a character, say, for different levels or different 'upgrades' and so on -- use your imagination :p
  11. Ability to dock and undock windows on user input -- much like Flash's and general Adobe's stuff, integrating into the main window or docking into separate windows. Uses a Panel class and a custom NativeWindow class for that. Currently uses a boatload of event listeners, though; will possibly work on reducing that in the future.
  12. Negative framerates and backwards playback.
  13. Import GIF files instead of a spritesheet; uses the as3gif library by Thibault Imbert -- Note: this imports a gif file and then creates another bitmapdata and copies the frames to it, so it will use around 2x the memory it actually requires. Thus, don't import medium to large GIF files (dimensions, that is -- a 100KB gif file is fine if it's less than 200 px * 200 px and / or has less than 30 frames) just yet.
  14. Timeline layering support -- I guess I'd finished this a while ago, just forgot to update. Now for a particular spritesheet, you can have multiple hitboxes (say, for example, powerups -- the hitboxes may change in size, and the different layers can hold differently-sized hitboxes for that purpose. It's a <layer> tag that contains the <frames>. I suppose I could just convert them to an attribute for compact sizing, but idk)
  15. Clipboard support -- now you can copy boxes and paste them.
  16. Pie menu support -- now there's a main context menu that looks kinda like the context menu in Maya and other programs.
  17. Export GIF from spritesheet and export spritesheet from GIF -- This is more like a secondary utility as it does not have anything to do with ASBoxer as such, but is a nifty utility to have. Who knows when it might come in handy? You can export a GIF from a spritesheet only (because what is the point in importing a gif and re-exporting it? If it's corrupted, you can instead export as a spritesheet and then re-import it and re-export it as a GIF, if you want; that'll fix it, most likely) and export a spritesheet from a GIF only (again, because what is the point in importing an image and re-exporting with the same settings, or worse?) The formats exportable from GIF to spritesheet are JPG, JXR and PNG.
  18. Support for JSON exporting -- you can now export to JSON (it's a good thing flash had native JSON support.) The layers have name properties inside them, and to access a layer, or a frame, or a box, you just go by its index; if there are 5 layers, they can be accessed from 1...5; if there are 200 frames, they can be accessed from 1...200. If there are 2 tags in a box, it can be accessed by 1 and 2 respectively. After that, just use .name to get their names.
  19. New! A splash screen akin to Visual Studio 2010's and similar programs.
  20. And some other trivial stuff I don't remember.

Features planned:

  1. Refactoring (really really crappy and tightly coupled code right now)
  2. Resize the boxes after drawing them (seems strange to be able to add and remove them but not resize them)
  3. Upload many images instead of a large spritesheet
  4. Native menus rather than a custom UI
  5. New! Autoboxing: Where you select a spritesheet and it automatically creates boxes based on the shape of the character
  6. New! Select individual rectangles instead of many rectangles of the same size (frame rects)
  7. New! Extensions (using a custom API or some other way, sounds exciting!)
  8. New! Custom skin support for user interface
  9. New! Chroma-keying / background support for non-transparent images (like JPEG and JPG files, and 24 bit PNGs without transparency)
  10. New! Plugin chains like Vegas Pro / Sound Forge / etc.

And after I've completed most features I guess I might put up the project on Github if I feel like it. Suggest any other features you'd like to see!


Main screen on 10/26/2014:first prototype
(image squashed to show lack of fluid layout in the application)

Main screen on 10/27/2014:second prototype
(image squashed again, but this time there's a fluid layout -- the sidebar doesn't shrink)

Editing screenshot as of 10/29/2014: (I didn't show the main screen since the panel on the right was removed; it was supposed to appear only while editing, so this is more of the actual application. Lookin' good if I may say so myself)third prototype
(fluid layout and checker backgrounds -- the trollface image was the quickest transparent image I could load, hah. The button marked "label" was supposed to be the button marked "apply changes", but I'll change that later.)

My exams are now over! Now for the next set of exams in April :>

In the meantime, I'm working on:

  • #2, Resizing the boxes after drawing them.
  • #4, Native menus rather than a custom UI. (Although I may offer an option of both if people want that) (Special note: This is a rather daunting task because there's so many options to be included. It's made really easy due to Adobe AIR, but there's still a bit left, say anywhere from 35% to 50% remaining)
  • #9, Chroma-keying.

Features Finished

  1. 10/26/2014 and prior -- Most of the basic stuff (features #1 to #5)
  2. 10/28/2014 -- Better XML support
  3. 11/03/2014 -- Box tags and names (updated on 11/05/2014)
  4. 11/20/2014 -- Ability to dock and undock windows
  5. 11/21/2014 -- Timeline support
  6. 11/26/2014 -- Negative framerates and backwards playback
  7. 12/01/2014 -- GIF Support added! Now you can import GIF files and it'll convert them into frames. Thanks to the as3gif library by Thibault Imbert.
  8. 12/02/2014 -- Timeline layering support
  9. 12/04/2014 -- Clipboard
  10. 12/05/2014 -- Pie Menu support
  11. 12/07/2014 -- Export GIF and/or Spritesheet
  12. 12/10/2014 -- Splash Screen
  13. 12/13/2014 -- JSON Support

Features partially / mostly completed

  1. #2, Resizing boxes after drawing them
  2. #4, Native menus rather than a custom UI (well, both right now coexist and I'm not planning to remove that)

Recent Game Medals

Melee Duel 10 Points Destroy a white bot Medal Stats.
Parry 5 Points Parry an attack Medal Stats.
Being Dad 5 Points Destroy a bot Medal Stats.
SECRET MEDAL 5 Points Unlock this medal to see it's details. Medal Stats.
Happy Guy Fro 5 Points Don't be hatin'! Afros are hip, yo. Medal Stats.
Justice Served 5 Points Go get 'em, Officer Adrian! Medal Stats.
The Boss 5 Points IGP is the b055! Medal Stats.
Persistence 5 Points But there's something wrong! Medal Stats.
Lazy Developer 5 Points I SAID SORRY! Medal Stats.
LEVEL 4 10 Points Beat level 3! Medal Stats.

Total Medals Earned: 2,340 (From 448 different games.)

Latest Shared Creations

Lamp Added to pumpkins for Carve n' Share Jun 11, 2014. Load Level
My Pumpkin Added to pumpkins for Carve n' Share Jun 11, 2014. Load Level
Hmm, Added to pumpkins for Carve n' Share Feb 10, 2012. Load Level
Why Added to pumpkins for Carve n' Share Feb 10, 2012. Load Level
Are Added to pumpkins for Carve n' Share Feb 10, 2012. Load Level
You Added to pumpkins for Carve n' Share Feb 10, 2012. Load Level