Quote from: Crimson Wizard on Wed 28/10/2020 15:11:55Quote from: Olleh19 on Wed 28/10/2020 14:35:16
What i mean is, autotracking does "work". But i'm expecting it to auto follow the character in the newly set room camera code, that is in the repeatedly_execute() function. Is that making it clearer to you? Would be neat if that worked, but ofc not![]()
No, I am afraid I still don't understand... what do you mean by that?
For example, the code you posted aboveCode: ags Game.Camera.SetAt(5, 4);
This code locks camera at room's x=5, y=4. It won't scroll like this, it will stay locked at the exact coordinates that you provide. Were you expecting something else? Why did you use this code and these parameters, what's their meaning to you?
Could you try explaining what you are trying to achieve in simple language, without refering to code? Like, you want camera to follow after character, but not like default ags, and do ... what instead?
EDIT: ok... a blind guess, are you trying to make camera follow character, but positioned always with few pixels offset?
Exactly, it's locked. It should be locked, until the player moves to either RIght or Left side ends of the sides. Just like a normal untouched camera room would react.
This is quite funny. I am so dumb with words since English is not the native language.
I want the room to scroll to the sides like normal AGS behaviour after that code is set. How can this be so hard to explain. Damn it!

EDIT: I'm drawing pictures to demonstrate instead.
EDIT: Sorry imgur is giving me errors the low resolution probably fucks it up........It will not upload the pictures drawn in 240-320px, or such. At least not for me. and zoom image do not recognise the links....................

The fixed code version is how it looks after pushing F5 which is exactly right, but then it's locked. It needs to able to scroll to the sides, and keep it's "locked Y" Setting.........
This is how the room looks IMPORTED in AGS when pushing F5 (not teh room just a visual demonstration).
Image 1: http://www.mediafire.com/view/1y6sga1jnavjjk3/AGSEDITOR.png/file
Room is "fixed" with code, so everything that should be seen is seen in the Camera view.
IMAGE 2: http://www.mediafire.com/view/p0m55ecq6r8xrn7/AGS2.png/file#