clean tank stage n added the og stuff for tutorial

This commit is contained in:
⍚~Nex
2024-03-17 01:49:23 +01:00
parent f961917b69
commit c3691c8f08
6 changed files with 19 additions and 10 deletions
+8
View File
@@ -0,0 +1,8 @@
var lastFocused:Int = null;
var zoomin:FlxTween = null;
function onNoteHit(event)
event.enableCamZooming = false;
function onCameraMove(_) if(zoomin == null && lastFocused != (lastFocused = curCameraTarget))
zoomin = FlxTween.tween(FlxG.camera, {zoom: curCameraTarget == 0 ? 1.3 : 1}, (Conductor.stepCrochet * 4 / 1000), {ease: FlxEase.elasticInOut, onComplete: function(_) zoomin = null});