Actions

Debug Project

From Shoot Em Up Kit

Revision as of 16:56, 24 May 2020 by Wikiadmin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Debug is turned on and off by clicking the ToolBarDebug.png Debug icon on the Tool Bar. When it is on, the icon is green DebugOn.png.


When a game or level is played with Debug on, the collision boundaries of the entities are shown along with Triggers and Active Areas. Objects are taken to have collided when their collision boundaries overlap.


DebugGame.png


This makes it possible to see how objects are colliding with each other and with triggers. This can help to find the cause if objects are being destroyed unexpectedly. In the example below, the ships are being destroyed as they are colliding because the collision sphere of the lower ship is too large - this can be corrected by selecting the ship in the Entity Editor and going to the Collisions Tab.


DebugCollision.png


Any Custom Variables in the level will be displayed in the top left corner of the screen as shown:


DebugVars.png


On pressing [ESC] to return to the Editor, an Event Log window is displayed. This shows key information such as collisions, triggers and the destruction of objects.


DebugEventLog.png