Menu

Objects

Frank Force

There are several different built in object types available that serve as kind of like basic building blocks to make special things happen. Objects can be customized by changing their [Object Attributes] which are passed to the game as a string of text which is parsed at runtime. For example most objects can be configured to use any frame in one of the predefined images.

Objects

You can select the current object type by using the [Quick Pick Box] or clicking on an object. Depending on what object type is selected some extra information may be shown. For example when you select an NPC it also draws the points it will travel between.

Every object has an object ID (sometimes called a handle) which is unique value used to identify that object. When an object is selected it's Object ID is shown at the top of the object info box. Object IDs can be used for things like connecting buttons to objects and linking doors together. Note that if you copy and paste an object the newly pasted object will be identical except it will have a different unique ID.

You can create a new object by pressing Z which will drop a blank object of the current type at the location of the mouse. Or you can use Ctrl+C and Ctrl+V to copy and paste another object of the desired type.

Objects can be rotated using Shift + left mouse button but not all objects are configured to use that information.

Objects can be re-sized using Ctrl + left mouse button. When editing an object's attributes if it uses a custom image then the object will automatically be re-sized to match the image's size.

  • [Tile Object] - A custom tile that can trigger a message when touched by the player.
  • [Crate Object] - Players can push/pull crates and they can activate buttons.
  • [Moving Platform Object] - Physical moving object that player can jump and stand on.
  • [Object Spawner Object] - Generic spawner for any other object type.
  • [NPC Object] - Moving sprite without physics that can say a message to the player.
  • [Button Object] - Can be hooked up to trigger other objects when touched.
  • [Goal Object] - Marks a destination on the minimap and sets goal text on the pause screen.
  • [Door Object] - Connects two different parts of the map, or an indoor/outdoor pairing.
  • [Warp Portal Object] - Players can fast travel between all the warp portals they discover.
  • [Bouncer Object] - Moving physics object that bounces when it collides.
  • [Powerup Object] - Gives the player a powerup when touched.
  • [Static Object] - A non-moving sprite or tile that has several configurable options.
  • [Projectile Object] - Moving sprite with physics. Intended to be spawned via an Object Spawner.
  • [Trigger Box Object] - Setup to trigger other objects when the player enters the trigger region.
  • Custom Objects - Place holder object for users to customize or use as a template for adding new objects.

The hash symbol '#' sometimes acts as a delimiter between values and can be used to skip over parameters.

All the objects derive from GameObject and can be customized further by editing "miscObjects.cpp"

You can make objects recognize additional parameters or completely new object types with some changes to code. There are two custom objects provided to give you a starting place for advanced users to add their own code. Taking a things a step further you will need to customize the editor itself to add more objects and use advanced preview functionality like what the other built in objects have.


Related

Wiki: Bouncer Object
Wiki: Button Object
Wiki: Controls
Wiki: Crate Object
Wiki: Door Object
Wiki: Getting Started
Wiki: Goal Object
Wiki: Home
Wiki: Moving Platform Object
Wiki: NPC Object
Wiki: Object Attributes
Wiki: Object Spawner Object
Wiki: Powerup Object
Wiki: Projectile Object
Wiki: Quick Pick Box
Wiki: Static Object
Wiki: Tile Object
Wiki: Tile Sets
Wiki: Trigger Box Object
Wiki: Warp Portal Object

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.