Advertisement
Guest User

Untitled

a guest
May 22nd, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.         private const noscroll:FlxPoint = new FlxPoint;
  3.         private function HORRIBLE_HACK(f:Function):void {
  4.             var lastScroll:FlxPoint = FlxG.camera.scroll;
  5.             FlxG.camera.scroll = noscroll;
  6.             f();
  7.             noscroll;
  8.         }
  9.         override public function update():void { HORRIBLE_HACK(super.update); }
  10.         override public function draw():void { HORRIBLE_HACK(super.draw); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement