How do you make a camera that only scroll to when the player reach the end of the camera buffer area? The camera will not move while the player is inside the white buffer area.
You can put a big invisible sprite/tiledbackground.
If character overlapping sprite -> set scroll X to lerp(scrollx, sprite.x, dt*4)
Else set scroll X to lerp(scrollx, character.x, dt*4)
Thank you, after some tweaking I have a working camera. You are a live saver!
Develop games in your browser. Powerful, performant & highly capable.
i am having the exact same "problem", can you explain it a bit more please?
step by step would be awesome, you would help me a ton!
Meanplaya Demo:
dropbox.com/s/8zm9bjlxmp2kyhr/LimitedScroll2.capx
You can check out the "Monk fight" template - editor.construct.net
It does contain a camera that fixes itself to an area until a specific set of conditions is met.
Thanks everyone, you helped me a ton!
good luck in your future projects!