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
gdevelop5:objects:sprite:collision-mask [2019/07/01 23:56]
4ian
gdevelop5:objects:sprite:collision-mask [2019/07/24 20:06]
piyushpalawat99
Line 1: Line 1:
 # Collision Masks (for Sprite objects) # Collision Masks (for Sprite objects)
  
-In a Sprite editor, below all the animations, we find the "Edit Hitboxes" ​button.+In a Sprite editor, below all the animations, we find the **Edit Hitboxes** button.
  
 {{ :​gdevelop5:​objects:​screenshot_from_2019-05-21_16-36-32.png?​nolink |}} {{ :​gdevelop5:​objects:​screenshot_from_2019-05-21_16-36-32.png?​nolink |}}
Line 9: Line 9:
 {{ :​gdevelop5:​objects:​screenshot_from_2019-05-21_17-00-45.png?​nolink |}} {{ :​gdevelop5:​objects:​screenshot_from_2019-05-21_17-00-45.png?​nolink |}}
  
-To add your own custom collision mask, click on the "Use a custom collision mask" ​option.+To add your own custom collision mask, click on the **Use a custom collision mask** option.
  
 {{ :​gdevelop5:​objects:​screenshot_from_2019-05-21_17-03-48.png?​nolink |}} {{ :​gdevelop5:​objects:​screenshot_from_2019-05-21_17-03-48.png?​nolink |}}
Line 23: Line 23:
 {{ :​gdevelop5:​objects:​screenshot_from_2019-05-21_17-22-22.png?​nolink |}} {{ :​gdevelop5:​objects:​screenshot_from_2019-05-21_17-22-22.png?​nolink |}}
  
-After adding the mask click on CLOSE and then APPLY.+After adding the mask click on Close and then Apply.
  
 The collision masks we used for our above example give better results in the same condition. The collision masks we used for our above example give better results in the same condition.
Line 29: Line 29:
 {{ :​gdevelop5:​objects:​screenshot_from_2019-05-21_17-26-52.png?​nolink |}} {{ :​gdevelop5:​objects:​screenshot_from_2019-05-21_17-26-52.png?​nolink |}}
  
-To add unique collision masks for different animations of the same sprite, disable the "Share same collision masks for all animations" ​option.+To add unique collision masks for different animations of the same sprite, disable the **Share same collision masks for all animations** option.
  
 {{ :​gdevelop5:​objects:​sprite:​annotation_2019-06-21_121320.png?​nolink |}} {{ :​gdevelop5:​objects:​sprite:​annotation_2019-06-21_121320.png?​nolink |}}
  
-To add unique collision masks for different instances of the same sprite, disable the "Share same collision mask for sprites of this animation" ​option.+To add unique collision masks for different instances of the same sprite, disable the **Share same collision mask for sprites of this animation** option.
  
 {{ :​gdevelop5:​objects:​sprite:​annotation_2019-06-21_121540.png?​nolink |}} {{ :​gdevelop5:​objects:​sprite:​annotation_2019-06-21_121540.png?​nolink |}}