ability to move spawns in editor
This commit is contained in:
@@ -115,6 +115,7 @@ function stepEditor()
|
||||
|
||||
if Keybind:checkPressed(Keybind.debug.editor) then
|
||||
editor_mode = not editor_mode
|
||||
deselectSpawns()
|
||||
createTileObjects()
|
||||
end
|
||||
end
|
||||
@@ -216,8 +217,12 @@ function doEditorEdit()
|
||||
reloadLevelTiles()
|
||||
else
|
||||
if Keybind:checkDown(Keybind.generic.lclick) then
|
||||
deselectSpawns()
|
||||
selectSpawns(mouse_x,mouse_y)
|
||||
end
|
||||
if Keybind:checkDown(Keybind.generic.rclick) then
|
||||
moveSpawns(mouse_x,mouse_y)
|
||||
end
|
||||
end
|
||||
elseif Keybind:checkPressed(Keybind.generic.lshift) then
|
||||
expandLevelCanvas(math.sign(expand_h),math.sign(expand_v))
|
||||
|
||||
Reference in New Issue
Block a user