I got it working the way i wanted for the x axis with:

        if(stage.mouseX < stage.stageWidth / 2) {
                tcamera.moveRight((stage.stageWidth / 2 - stage.mouseX) / 8);
        }
        if(stage.mouseX > stage.stageWidth / 2) {
                tcamera.moveLeft((- stage.stageWidth / 2 + stage.mouseX) / 8);
        }

Now i have to get it right for the y mouse axis but with bounds...

Reply via email to