Hey fellas, it's me, once again.
First of all, my Code:
[FlxU setWorldBoundsWithParam1:0 param2:0 param3:100 param4:100];
focus = [[[FlxObject alloc] initWithX:player.x y:player.y width:1 height:1] autorelease];
[FlxG followWithParam1:focus param2:15];
[FlxG followBoundsWithParam1:0 param2:0 param3:stageLength param4:5000 param5:TRUE];
[FlxG followAdjustWithParam1:0 param2:0];
focus.x = player.x + 200;And here is another question:
focus.y = player.y;
How can I achieve, that the camera does not only follow in the x direction, but follows equally in the y direction?!...I think not the following itself is the problem, as it follows when the y speed of the player is not that high. But when i do a quick jump, the focus should jump up as well. At the moment, the player jumps out of the screen and comes back in.
How can I do that?
Thanks in advance fellas,
Edit: Maybe i got the issue...as i start at position 0,0 it could be that you cannot go into the -y direction?...have to try lowering it from the beginning..
Edit 2: That was it. The camera cannot follow into a -ysomething value. (yes,kinda funny to solve a problem before the post has been approved..l)