User Tools

Site Tools


hitbox:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hitbox:start [2023/12/29 03:18]
Mistermind
hitbox:start [2024/01/04 20:27] (current)
Mistermind
Line 1: Line 1:
 ====== Custom Hitbox Editor ====== ====== Custom Hitbox Editor ======
-Custom hitboxes can be used to replace the standard automapping done by UFE for hitboxes. Use this file instead of the animation file when filling the correspondent fields under the character'moveset or the move editor. +Custom hitboxes can be used to replace the standard automapping done by UFE for hitboxes. Use this file instead of the animation file when filling the correspondent fields under the character'move set or the move editor.\\ 
- +For this introduction we will be using several moves from the folder below.\\ 
-For this introduction we will be using several moves from the folder below. +\\ 
- +Folder Location: ''.\UFE\Demos\_2DFighter\Characters\Ellen\HitBoxMaps\''\\ 
-Folder Location: ''.\UFE\Demo\Characters\Ellen\HitboxMaps''\\ +\\ 
- +To open the editor, go to ''Window -> UFE -> Custom Hitbox Editor''.\\ 
-To create a new move, in the project window click on ''Create -> U.F.E. -> Custom Hitbox File''.+To create a new hitbox set, in the project window click on ''Create -> U.F.E. -> Custom Hitbox File''.
  
  
  
 ---- ----
-===== Introduction =====+===== Editor Tools =====
 To use the editor, drag a 2D animation file into the **Animation Clip** field. To preview the animation, assign a [[character:prefabs|character prefab]] to the field or used a direct link from the [[https://docs.unity3d.com/Manual/BestPracticeUnderstandingPerformanceInUnity6.html|Resources folder]]. To use the editor, drag a 2D animation file into the **Animation Clip** field. To preview the animation, assign a [[character:prefabs|character prefab]] to the field or used a direct link from the [[https://docs.unity3d.com/Manual/BestPracticeUnderstandingPerformanceInUnity6.html|Resources folder]].
  
Line 18: Line 18:
 To add a new hit box click on **Add Hit Box**. Right click on it to display all the options for the hitbox such as shape, collision type and hit type. To add a new hit box click on **Add Hit Box**. Right click on it to display all the options for the hitbox such as shape, collision type and hit type.
  
-{{ :hitbox:customhitboxeditoroptions.png|}} +{{:hitbox:customhitboxeditoroptions.png |}}
-  * **Link:** The body part related to the character on screen. Navigate through the mesh and select the bone that best cover the selected body part.+
   * **Shape:** Circle or Rectangle shape hitbox.   * **Shape:** Circle or Rectangle shape hitbox.
   * **Collision Type:**    * **Collision Type:** 
Line 25: Line 24:
     * Hit Collider (green hitboxes): Hit collision only. Opposing green hitboxes can overlap.     * Hit Collider (green hitboxes): Hit collision only. Opposing green hitboxes can overlap.
     * No Collider (white hitboxes): No collision. Use these for body parts that are not considered hitboxes but can be a [[move:activeframes|hurtbox]] if needed.     * No Collider (white hitboxes): No collision. Use these for body parts that are not considered hitboxes but can be a [[move:activeframes|hurtbox]] if needed.
-    * Throw Collider (red hitboxes): Used to detect attacks that have hittype of Throw.  If the character doesn't have a Throw Collider hitbox, then throws will not work against them.  See also: [[throwtutorial:throw_tutorial|Throw Creation Guide]]+    * Throw Collider (red hitboxes): Used to detect attacks that have hit type of Throw.  If the character doesn't have a Throw Collider hitbox, then throws will not work against them.  See also: [[throwtutorial:throw_tutorial|Throw Creation Guide]]
   * **Hit Box Type:**    * **Hit Box Type:** 
     * High: If a non-knockdown attack hits this hitbox, ''Get Hit High'' animation group is triggered.     * High: If a non-knockdown attack hits this hitbox, ''Get Hit High'' animation group is triggered.
Line 31: Line 30:
  
  
-{{ :hitbox:customhitboxeditoroptions2.png |}} +---- 
-Once created, right click on the empty field to create a new set of active frames for the hitbox to appear and be active.+Now that you selected the proper shape and types, right click on the empty field to the left to create a new set of active frames for the hitbox to appear active.\\ 
 +{{:hitbox:customhitboxeditoroptions2.png|}}
  
-{{ :hitbox:customhitboxeditoroptions3.png |}}+ 
 +---- 
 +Drag the edges of the rectangle to move, retract or expand the active frames for this hitbox. 
 +{{:hitbox:customhitboxeditoroptions5.png|}} 
 + 
 + 
 +----
 Now, right click on the recent created active frames to see the new options. Now, right click on the recent created active frames to see the new options.
 +{{:hitbox:customhitboxeditoroptions3.png|}}
 +
 +
 +----
 +Click on **Edit** to adjust the position, width and height (if its a rectangle) or radius (if its a circle).
 +{{:hitbox:customhitboxeditoroptions4.png|}}
  
  
-Click on Edit to adjust the position, width and height (if its a rectangle) or radius (if its a circle). 
  
  
hitbox/start.1703837932.txt.gz · Last modified: 2023/12/29 03:18 by Mistermind