View Single Post
MilloCz

JCF Member

Joined: Jan 2011

Posts: 24

MilloCz is doing well so far

Aug 25, 2016, 07:44 AM
MilloCz is offline
Reply With Quote
Thanks for reply, I will check that out.


Also, could you help me with cameraFreeze? when you are near x position 0, camera freezes and doesn't move out of level border - can I do this with cameraFreeze on other positions too?

My code:
Code:
	if(p.xPos>260*32){

		if(did_he_set_it == 0){

			playerx = p.xPos;
			did_he_set_it = 1;
		}
		p.cameraFreeze(playerx ,p.yPos, true, true);
	}
	else{

		p.cameraUnfreeze(true);
		did_he_set_it = 0;
	}
The issue I'm having - it's laggy, the camera shakes a little when it's frozen, making it look pretty weird.. Any idea how do I overcome this? If I set isntant to false, then camera is kind of lazy and slow.