Differences

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

Link to this comparison view

Both sides previous revision Previous revision
gdevelop5:objects:sprite [2018/10/12 19:33]
valiant_curiosity [Sprite object]
gdevelop5:objects:sprite [2019/05/18 00:12] (current)
piyushpalawat99
Line 7: Line 7:
 Sprite objects are the most often used objects in GDevelop. Sprite objects are the most often used objects in GDevelop.
  
-A sprite object allows us to display an image or to play a series of images as animation. A sprite object can be used for many things in our games. Buttons, characters, and platforms are all considered objects. Anything that can be represented with an image can be a sprite object.+A sprite object allows us to display an image or to play a series of images as an animation. A sprite object can be used for many things in our games. Buttons, characters, and platforms are all considered objects. Anything that can be represented with an image can be a sprite object.
 ==== How to create a sprite object==== ==== How to create a sprite object====
  
Line 21: Line 21:
 {{ :​gdevelop5:​objects:​select-sprite.png?​nolink&​400 |}} {{ :​gdevelop5:​objects:​select-sprite.png?​nolink&​400 |}}
  
-Once we have our sprite created, right click the sprite object on the Object list. Select "Edit object"​ from the popup menu.+Once we have our sprite created, right-click the sprite object on the Object list. Select "Edit object"​ from the popup menu.
 This selection will open up the object properties window. The properties are different for each type of object. This selection will open up the object properties window. The properties are different for each type of object.
 If the object is a sprite, ​ we will see something like this If the object is a sprite, ​ we will see something like this
Line 33: Line 33:
 {{ :​gdevelop5:​objects:​animation-properties.png?​nolink&​400 |}}  {{ :​gdevelop5:​objects:​animation-properties.png?​nolink&​400 |}} 
  
-On this screen we add images to our object by clicking on the plus symbol.+On this screenwe add images to our object by clicking on the plus symbol.
 {{ :​gdevelop5:​objects:​add-symbol.png?​nolink&​200 |}} {{ :​gdevelop5:​objects:​add-symbol.png?​nolink&​200 |}}
  
-Next we need to browse our computer for an image and select one. Once done, the spite image will be displayed in the window.+Nextwe need to browse our computer for an image and select one. Once done, the sprite ​image will be displayed in the window.
 {{ :​gdevelop5:​objects:​add-image.png?​nolink&​400 |}} {{ :​gdevelop5:​objects:​add-image.png?​nolink&​400 |}}
  
Line 87: Line 87:
 {{:​gdevelop5:​objects:​eventanimationexample.png?​800|}} {{:​gdevelop5:​objects:​eventanimationexample.png?​800|}}
  
-NOTE:  As a habit, make sure to__ add a name to your animation__ using the name section in the objects ​properties:+NOTE:  As a habit, make sure to__ add a name to your animation__ using the name section in the object'​s ​properties:
  
 {{:​gdevelop5:​objects:​animationnaming.png?​400|}} {{:​gdevelop5:​objects:​animationnaming.png?​400|}}