Skip to main content Link Search Menu Expand Document (external link)

Props folder

contains all types of props used in-game

Table of contents

  1. What is a prop?
  2. Simple prop
    1. Adding a new simple prop
      1. Adding a prop to a screen
      2. Changing/removing a prop from a screen
    2. Changing or removing a simple prop
    3. Steps (without Worldsmith)
    4. Disclaimer for animated props
  3. Next up

What is a prop?

A prop is a (sometimes dynamic) object. It can be any of the following examples:

  • the bonfire at the start of your journey,
  • the Old Man,
  • the hidden cap in the sewer,
  • the hidden wall covering the cap in the sewer,
  • the bird with the gold coin,
  • the gold coin,
  • the merchant in Bargainburg,
  • et cetera…

All of these are props, the following subcategories cover each different type of prop.

Good practice with props

Avoid:

  • using props in the final screen to prevent slight visual bugs from the game after beating the level.
  • creating big sprite sheets, the game tends to crash if either the image width or height is over 4000 pixels, if you need to have big sprite sheets try to make a square-looking sprite sheet to lower the chances of crashing. (thanks to Abaddon for the tip!)

Simple prop

The props in-game (such as the bonfire in the first screen) are stored in the props/textures folder. Inside this folder, there’s a configuration file named prop_settings.xml which contains a list of <PropSetting> tags.

Adding a new simple prop

  1. Navigate to the Content Manager page.

    Content Manager

  2. Scroll until you find an header “Props”.
  3. Click on the Create a prop button found on the right side. A prompt will show up asking the necessary information for your prop. The following image is how it should look like:

    Create a prop

  4. Write the name for your prop (make it recognizable!).
  5. Click on Replace to add (or replace if already added) the texture for your prop.
  6. A new prompt will show up asking to you select the texture of your prop.

    Add prop

  7. After selecting your file, click Open.
  8. Adjust your sprite sheet by adding rows and columns to make the prop animate properly.

    Prop adjust

  9. After clicking Add prop, you should see your audio piece below “Props”.

    Prop successfully added

You’ve successfully added a prop in the prop list. Now you can add it on your screen following the next subchapter.

Adding a prop to a screen

To add a prop on a screen:

  1. Navigate to the Screens page.
  2. Right-click onto the canvas on the left side of your screen (where you have your level preview) and select Add on screen…, then Props, then Prop.

    Prop right click

  3. Once clicked, a prompt will ask you a few details. You will need to select which prop you want to add, choose its position and if you want to prop to be horizontally flipped.

    Prop details

  4. Once done setting it up, click Add.
    Your prop should appear on your preview.

    Prop added successfully

Changing/removing a prop from a screen

  1. Navigate to the Screens page.
  2. Using the Go to screen… button or the up-down arrows, move to the screen you have the background you want to change/get rid of.
  3. From the right side of the page, expand the Props tab.

    Click on a prop or, using the left side of the page (preview), click on the prop’s animated sprite to easily find the prop you are looking for!

    Props

Modify the prop’s position using the input boxes, or flip the prop’s texture. Click the yellow button with the cog to head over in the Content Manager page and edit your prop settings accordingly. Click on the red button with the X to remove the prop instance from the current screen.

Changing or removing a simple prop

  1. Navigate to the Content Manager page.

    Content Manager

  2. Scroll until you find an header “Props”.
  3. Click on the prop you are looking to modify. The following pop-up will show up:

    Prop successfully added

Change the details at will. If you’d like to delete the prop, click Delete this prop on the bottom-left corner of the pop-up.

This will delete every instance of this prop used in the various screens!

Steps (without Worldsmith)

Adding a simple prop

For starters, you should try having a single sprite sheet (just an image).

  1. Write down your image’s sprite sheet size and its name.
  2. Convert the sprite sheet image of your choice into a packed XNB file.
  3. Place it inside props/textures.
  4. In the same folder you should find a xml file called prop_settings.xml, open it.
  5. Copy the snippet below:
    <PropSettings>
     <name>YOUR_PROP_FILENAME</name>
     <fps>YOUR_PROP_FRAMES_PER_SECOND</fps>
     <sheet_cells>
       <X>YOUR_PROP_SHEET_COLUMNS_NUMBER</X>
       <Y>YOUR_PROP_SHEET_ROWS_NUMBER</Y>
     </sheet_cells>
    </PropSettings>
    
  6. Replace YOUR_PROP_FILENAME with the file name of your prop.
  7. Replace YOUR_PROP_FRAMES_PER_SECOND to how many frames you want to see per second. If it’s your first prop, set it to 10, later on you can always change it.
  8. Replace YOUR_PROP_SHEET_COLUMNS_NUMBER and YOUR_PROP_SHEET_ROWS_NUMBER with the sprite sheet size you wrote down; if it’s your first time change both to 1.

If you want to change the duration of your frames, you should copy the example below and customize it to your preference. You can add and remove as many float as you wish. Mind that adding floats will negate the fps value of the prop itself. It’s also recommended to have the same number of floats as your spritesheet so that each frame uses their relative float. (If you have a spritesheet made by 3 columns and 3 rows (9 frames) and you have 8 floats, the 9th frame will read the first float, therefore creating a misalignment on the frames)

    <frames>
      <float>3.8</float>
    </frames>

If you want to start with a random frame, simply add right before the closing PropSettings tag:

    <random_offset>true</random_offset>

Good, you’ve added a prop so the game can understand its various data. Now let’s add it on a screen.

  1. Navigate to props and check if a prop[SCREEN].xml file exists. (e.g., 65th screen = prop65.xml)

    If the file doesn’t exist, create it and paste the following snippet:

         <?xml version="1.0"?>
         <PropCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
           <Props>
             <PropData>
               <type>YOUR_PROP_NAME</type>
               <Position>
                 <X>YOUR_PROP_X_POSITION</X>
                 <Y>YOUR_PROP_Y_POSITION</Y>
               </Position>
             </PropData>
           </Props>
         </PropCollection>
    

    If the file exists, paste the following snippet below an existing prop (below a line of the closing tag of PropData):

         <PropData>
           <type>YOUR_PROP_NAME</type>
           <Position>
             <X>YOUR_PROP_X_POSITION</X>
             <Y>YOUR_PROP_Y_POSITION</Y>
           </Position>
         </PropData>
    
  2. Replace YOUR_PROP_NAME with the filename of your prop.
  3. Replace YOUR_PROP_X_POSITION and YOUR_PROP_Y_POSITION to the relative position of your prop.

Replacing a simple prop

If you want to keep the same prop but change its texture:

  1. Convert your new file into a packed XNB file.
  2. Place it in props/textures and replace the item keeping the same name.
  3. If you have changed the sprite sheet, you will need to modify the sprite sheet sizes in the prop_settings.xml file inside the same folder of your packed prop.

If you want to replace a prop in a specific screen with another:

  1. Write down which screen you’d like to replace the prop.
  2. Navigate to the props folder and open the prop[SCREEN].xml file with [SCREEN] as your screen number (e.g., 65th screen = prop65.xml).
  3. Find the prop you want to replace by searching its name, change the type value to your new prop.

Removing a simple prop

To remove a prop:

  1. Write down every screen that prop is used from.
  2. Navigate to the props folder and open the prop[SCREEN].xml file with [SCREEN] as your first screen number (e.g., 65th screen = prop65.xml).
  3. Find your prop you want to remove by searching its name.
  4. Remove the whole PropData tag containing the type that equals the name of your prop.
  5. Repeat Step 2 for each screen that the prop is used from.
  6. Once completed, navigate to props/textures and open prop_settings.xml.
  7. Find your prop you want to remove by searching its name again.
  8. Remove the whole PropSettings tag containing the name that equals the name of your prop.
  9. Remove the prop packed XNB file from the same folder.

Disclaimer for animated props

The sprite sheet in-game will assign them with an index starting from 0. The index order is row by row, from top to bottom.

Next up

Hidden walls.


Table of contents