Objects Components Buildbox 2

Object Components – Buildbox 2

  • Object components object components can add important features to your objects like health damage wake up and more. It’s important to understand that there are two different states of objects

  • First you have the object asset which is over in the left hand side so this triangle this enemy you have in our game is the object asset now in the scene editor you have multiple units of this object asset which are copies of the asset and you just call them units you can add components to both the asset level and the unit level

  • If you click the button you’ll see a couple extra options you can add to the object assets including advanced move which lets you control an object through a button on your UI screen damage which lets you choose how much damage this asset will give if it’s unit is chosen to be an enemy rotation mapper this is a very advanced object asset component that allows you to assign an animation sequence to the rotation of an object this is typically used to create realistic effects in your game

  • Finally you have the health option which is already added to this particular asset this is how much health it will have if you attempt to damage a unit chosen as an enemy now let’s check out components on an object unit level so you’ll select one of the units here in the scene and if you click Add component again you currently have two options but you do have plans to add more wake up allows you to make the object wake up and start moving after you reach a certain distance or collide with it and the spawner component will spawn this unit over

  • If you like by clicking three dots and choosing collapse and you could also delete the component by choosing delete the collapse option can be very useful if you have multiple components open with wake up there are a couple important options first off you can see that this component is defaulted to disabled let’s choose distance based instead from the drop down now any changes you make to this object like adding speed to its linear and angular velocity will only take effect when you get within 0 pixels of this object

  • You could also enable this sleep function to make this object freeze again after it moves a specific number of pixels so that’s object components then these are fairly advanced features in build box but once you understand them they can open up a whole new world in your game

Leave a Comment

Your email address will not be published. Required fields are marked *