Touch Control Camera Problem

Hi,
I am having trouble controlling my actor with 'outside touch' on a larger than normal scene (4096x4096) the game is set up as a giant maze and I need to be able to move freely around it.
I have posted a video to illustrate the movement of the actor, it works perfectly on the regular scene size but not on the large one.
I have also tried the camera offset actor but this only seems to work when the actor is constrained to the mouse position.
My actor does the opposite and accelerates away in the opposite direction from where you touch the screen.

Any help would be greatly appreciated!
I am having trouble controlling my actor with 'outside touch' on a larger than normal scene (4096x4096) the game is set up as a giant maze and I need to be able to move freely around it.
I have posted a video to illustrate the movement of the actor, it works perfectly on the regular scene size but not on the large one.
I have also tried the camera offset actor but this only seems to work when the actor is constrained to the mouse position.
My actor does the opposite and accelerates away in the opposite direction from where you touch the screen.

Any help would be greatly appreciated!
Comments
also try reducing the size (for testing purposes) on that huge maze scene. and then run the game to see if the problem persist. reduce it to say, 3000 x 3000. i say this because on our first game we had issues with a huge room (similar size to yours) and the game just wasn't working. it was acting weird. Then when we reduced the size, it worked better. This was a year ago, mind you.
but try that and if problems are dtill there, pots your rules for the character's movement.
The actors movement rules are;
(Actor receives event-touch-outside
Attribute-game.touches.Touch1.X- < self.position.X+game.cam)
(Accelerate
Direction 0-relative to;actor -Acceleration 200)
And this is repeated with the four directions.
Also I tried it on a smaller scene on the video 480x640 but it didn't make any difference.
The effect I'm after is like the game 'Float' except with a chicken instead of balloons!
Cheers
Steve
I like the way you can control the chicken with this technique and it takes some skill to master it.
If it was just following the mouse/touch the game would be much less enjoyable!
Is it not possible to make a game like 'Float' with a bigger scene? where the actor is propelled by touch rather than constrained to it?
I tried your offset fix but it doesn't work with this movement as the actor is not constrained to the mouse position.
Ta
This is a how I am controlling the actor with another three directions, where am I supposed to put the +camx and +camy directions?
You are using 'move to' which has expression editor and I am using accelerate which doesn't.
(Actor receives event-touch-outside
Attribute-game.touches.Touch1.X- < self.position.X+game.cam)
(Accelerate
Direction 0-relative to;actor -Acceleration 200)
And this is repeated with the four direction