mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 08:07:54 -05:00
lil keyboard control shit
This commit is contained in:
parent
58cede8706
commit
1fa00fab9b
1 changed files with 13 additions and 13 deletions
|
@ -176,29 +176,32 @@ class StageBuilderState extends MusicBeatState
|
|||
// FlxG.stage.window.height += Std.int(20);
|
||||
}
|
||||
|
||||
if (FlxG.keys.justPressed.RIGHT)
|
||||
moveSprPos([1, 0, true]);
|
||||
if (FlxG.keys.justPressed.LEFT)
|
||||
moveSprPos([-1, 0, true]);
|
||||
if (FlxG.keys.justPressed.UP)
|
||||
moveSprPos([0, -1, true]);
|
||||
if (FlxG.keys.justPressed.DOWN)
|
||||
moveSprPos([0, 1, true]);
|
||||
|
||||
if (FlxG.keys.justPressed.LBRACKET)
|
||||
{
|
||||
if (curSelectedSpr != null)
|
||||
{
|
||||
moveLayer(1);
|
||||
}
|
||||
}
|
||||
|
||||
if (FlxG.keys.justPressed.DOWN)
|
||||
if (FlxG.keys.justPressed.RBRACKET)
|
||||
{
|
||||
if (curSelectedSpr != null)
|
||||
{
|
||||
moveLayer(-1);
|
||||
}
|
||||
}
|
||||
|
||||
if (FlxG.keys.justPressed.DELETE)
|
||||
{
|
||||
if (curSelectedSpr != null)
|
||||
{
|
||||
sprGrp.remove(curSelectedSpr, true);
|
||||
}
|
||||
}
|
||||
|
||||
CoolUtil.mouseCamDrag();
|
||||
|
||||
|
@ -231,7 +234,7 @@ class StageBuilderState extends MusicBeatState
|
|||
|
||||
if (FlxG.keys.justPressed.Z && actionQueue.length > 0)
|
||||
{
|
||||
trace('UNDO - QUEUE LENGTH: ' + actionQueue.length);
|
||||
// trace('UNDO - QUEUE LENGTH: ' + actionQueue.length);
|
||||
isUndoRedo = true;
|
||||
actionQueue.pop()(posQueue.pop());
|
||||
}
|
||||
|
@ -295,11 +298,8 @@ class StageBuilderState extends MusicBeatState
|
|||
var yDiff:Float = dumbArray[1];
|
||||
var forceMove:Bool = dumbArray[2];
|
||||
|
||||
// if (forceMove == null)
|
||||
// forceMove = false;
|
||||
|
||||
trace(xDiff);
|
||||
trace(yDiff);
|
||||
// trace(xDiff);
|
||||
// trace(yDiff);
|
||||
|
||||
if (forceMove)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue