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
Next revision Both sides next revision
gdevelop5:objects:base_object [2020/04/06 09:30]
4ian [Layer]
gdevelop5:objects:base_object [2020/04/06 09:37]
4ian [Visibility]
Line 68: Line 68:
  
 By ticking the box "Lock position/angle in the editor", you can make the instance immovable in the editor: By ticking the box "Lock position/angle in the editor", you can make the instance immovable in the editor:
-{{ :gdevelop5:objects:lock-sprite.png?nolink&400 |}}+ 
 +{{ :gdevelop5:objects:base_object:pasted:20200406-093052.png?nolink |}}
  
 When the instance is locked, we can not longer select it in the scene. There are times when you have lot of object instances overlapping each other in your scene. This makes it difficult to select some of them as you keep selecting the ones you don't intend to. In such cases, you can lock the instances. When the instance is locked, we can not longer select it in the scene. There are times when you have lot of object instances overlapping each other in your scene. This makes it difficult to select some of them as you keep selecting the ones you don't intend to. In such cases, you can lock the instances.
Line 89: Line 90:
  
 You can change the size of your objects, by enabling the custom size in the properties panel, and then enter the custom *width* and *height* dimensions in pixels: You can change the size of your objects, by enabling the custom size in the properties panel, and then enter the custom *width* and *height* dimensions in pixels:
-{{ :gdevelop5:objects:customsize-properties.png?nolink&400 |}}+ 
 + 
 +{{ :gdevelop5:objects:base_object:pasted:20200406-093137.png?nolink |}}
  
 # Object groups # Object groups
Line 133: Line 136:
 # Visibility # Visibility
  
-The visibility of the object is the property that allows it to be visible after its existence. The visibility of an object can be toggled on and off. If the object is not visible, it does not imply that the object does not existOn the contrary if the object ceases to existit directly implies that the object is not visibleIf the object exists, the object is visible and vice versa.+By default, object instances are all marked as visible, meaning that they are displayed on the screenUsing eventsyou can **hide** any instance during the gameAn hidden object instance won't be displayed anymorebut will still live on the scene (reacting to collisions, and following all other events as usual).
  
-If the object exists and its visibility is turned offall the actions and conditions will take place just like they would if the object would've been visible.+<note tip>Some objects, like Sprite or Text objects, can also have an **opacity**. The opacity, between 0 and 255, defines how transparent an object is (0 being fully transparent255 is the fully opaque and is the default). This can be changed independently from the visibility.</note>
  
 # In the events editor # In the events editor