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,28 +176,31 @@ class StageBuilderState extends MusicBeatState
|
||||||
// FlxG.stage.window.height += Std.int(20);
|
// 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)
|
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)
|
if (curSelectedSpr != null)
|
||||||
{
|
|
||||||
moveLayer(1);
|
moveLayer(1);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.DOWN)
|
if (FlxG.keys.justPressed.RBRACKET)
|
||||||
{
|
{
|
||||||
if (curSelectedSpr != null)
|
if (curSelectedSpr != null)
|
||||||
{
|
|
||||||
moveLayer(-1);
|
moveLayer(-1);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.DELETE)
|
if (FlxG.keys.justPressed.DELETE)
|
||||||
{
|
{
|
||||||
if (curSelectedSpr != null)
|
if (curSelectedSpr != null)
|
||||||
{
|
|
||||||
sprGrp.remove(curSelectedSpr, true);
|
sprGrp.remove(curSelectedSpr, true);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CoolUtil.mouseCamDrag();
|
CoolUtil.mouseCamDrag();
|
||||||
|
@ -231,7 +234,7 @@ class StageBuilderState extends MusicBeatState
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.Z && actionQueue.length > 0)
|
if (FlxG.keys.justPressed.Z && actionQueue.length > 0)
|
||||||
{
|
{
|
||||||
trace('UNDO - QUEUE LENGTH: ' + actionQueue.length);
|
// trace('UNDO - QUEUE LENGTH: ' + actionQueue.length);
|
||||||
isUndoRedo = true;
|
isUndoRedo = true;
|
||||||
actionQueue.pop()(posQueue.pop());
|
actionQueue.pop()(posQueue.pop());
|
||||||
}
|
}
|
||||||
|
@ -295,11 +298,8 @@ class StageBuilderState extends MusicBeatState
|
||||||
var yDiff:Float = dumbArray[1];
|
var yDiff:Float = dumbArray[1];
|
||||||
var forceMove:Bool = dumbArray[2];
|
var forceMove:Bool = dumbArray[2];
|
||||||
|
|
||||||
// if (forceMove == null)
|
// trace(xDiff);
|
||||||
// forceMove = false;
|
// trace(yDiff);
|
||||||
|
|
||||||
trace(xDiff);
|
|
||||||
trace(yDiff);
|
|
||||||
|
|
||||||
if (forceMove)
|
if (forceMove)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue