@@ -12,7 +12,7 @@ Use other rooms as reference if you're confused!
...
@@ -12,7 +12,7 @@ Use other rooms as reference if you're confused!
ADDING ITEMS TO THE ROOM:
ADDING ITEMS TO THE ROOM:
1) Make the ff. nodes per item, follow this hierarchy:
1) Make the ff. nodes per item, follow this hierarchy:
> StaticBody2D (named after the item)
> StaticBody2D (named after the item)
> CollisionShape2D (with square shape)
> CollisionShape2D (with square shape, set the square to the same shape as the sprite)
> Sprite (make a placeholder)
> Sprite (make a placeholder)
2) Attach the "Item" script to the StatidBody2D node
2) Attach the "Item" script to the StatidBody2D node
3) On the StaticBody2D node, toggle the "Make sure the object's children are not selectable" thing, it's next to the lock symbol in the toolbar
3) On the StaticBody2D node, toggle the "Make sure the object's children are not selectable" thing, it's next to the lock symbol in the toolbar
...
@@ -21,6 +21,7 @@ ADDING ITEMS TO THE ROOM:
...
@@ -21,6 +21,7 @@ ADDING ITEMS TO THE ROOM:
- retrievable = will be picked up when clicked on
- retrievable = will be picked up when clicked on
- interactable = can't be picked up, but will produce flavor text when clicked on
- interactable = can't be picked up, but will produce flavor text when clicked on
- paste the flavor text under the "Flavor text" variable, as in the default flavor text when the object is either picked up or clicked on for the first time
- paste the flavor text under the "Flavor text" variable, as in the default flavor text when the object is either picked up or clicked on for the first time
5) Check the property "Pickable" which should be under Collision2DObject in the Inspector sidebar