Level Editor


Hello! This page is a tutorial of in-game level editor. 

Input in the editor:

WASD - move block (If edit toggle enabled).

Delete - remove block (If edit toggle enabled).

Q/E - rotate block on 90 / -90 degrees (If edit toggle enabled).

Left Mouse Button - create block.

Triggers:

  • Triggers may change position / rotation of block in game.
  • Block, which you want change must has a group index to share reference on block in trigger. 
  • Every block must has only one group index!
  • Every level must has 1 start position and >=1 finish position 

Setup:

  • Add block in group, to do it, enable edit toggle and click on block -> tap on field "group" -> enter group index(any number, but not -1) -> tap on '+'. 
  • Create any trigger(move / rotate) 
  • Tap on trigger and click on "edit object" button

"Move Trigger" :

  • In Move X and Move Y fields you can setup new position for block. For example you enter in Move X field a number 2, but in Move Y number 3. Position of block equals (1, 1). That means, what new position will be (1, 1) + (2, 3) = (3, 4)
  • Move time field = time of movement
  • "Touch triggered" toggle need for set this trigger as dynamic. If block with "touch group" collide a trigger, he activate. Object with -1 "touch group" index = player
  • "group" field need for set an object, which you want move

"Rotate Trigger" :

  • "center" field need for set center of rotation, around will rotating blocks with "group" index. CENTER MUST HAS ONLY ONE BLOCK!
  • "degrees" and "times 360" field set angle on which must rotate block. For example, if you enter in "degrees" field number 90, but "times 360" you enter number 1, angle will equal 90 + 360 * 1 = 450
  • "loop rotate" toggle need for looping rotate with same speed 

"Camera Trigger" :

  • "Degrees" field - the angle to which the camera will turn
  • "Zoom" field - zooms in/out. 
  • "Static camera" toggle - camera stop moving when trigger activated
  • "Camera position group" field - object, on which camera will be focused

"Key Trigger" :

  • This is decoration


If you have any questions, ask me in comments. Thank you!

Get Square

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.