Actions

Difference between revisions of "Debug Project"

From Shoot Em Up Kit

 
Line 1: Line 1:
Debug is turned on and off by clicking the [[File:ToolBarDebug.png|link=]] ''Debug'' icon on the [[Tool Bar|Tool Bar]].  When it is on, the icon is green [[File:DebugOn.png]].
+
Debug is turned on and off by clicking the [[File:ToolBarDebug.png|link=]] ''Debug'' icon on the [[Tool Bar|Tool Bar]].  When it is on, the icon is green [[File:DebugOn.png|link=]].
  
  

Latest revision as of 16:56, 24 May 2020

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