DemoProductions / fighter

2 stars 1 forks source link

new anims, new hitboxes, editor script #31

Closed flip40 closed 8 years ago

flip40 commented 8 years ago

Added run animations using the new sprites (will need to rename run_new as run in the future), and new hitboxes to go with them when the time comes.

Also added an editor script I found that helped a lot with the hitboxes. Unlike our old sanji sprites, putting a polygon2d on this guy made some interior polygons that would work great if we wanted to have the area between his arm and body not be a hitbox or whatever, but is a real pain when you find you can't remove them with the UI (you can only get them down to a triangle), and this happens all the time because we don't want the hitbox to be the entire body as defined by a default polygon2d. This adds a button in the menu that removes these interior polygons, making life much easier. Usage: Click on a GameObject you want to remove internal polygons from (careful not to do this to a character like Sanji, just do it to a unique sprite you are setting the boxes for) and then click GameObject on the menu (top of screen for Mac, top of window for Windows) then click Remove Internal Polygons at the bottom of the list.