Why doesnt the camera stay centered?

All new ideas for the upcoming releases of ToME 4.x.x should be discussed here

Moderator: Moderator

Post Reply
Message
Author
Elvisman2001
Thalore
Posts: 153
Joined: Mon Oct 10, 2011 6:23 pm

Why doesnt the camera stay centered?

#1 Post by Elvisman2001 »

Is there anyway to make the camera stay centered over the player's character? I think it would be more comfortable for the player character to remain at the center of the screen and have the background scroll beneath it instead of it actually straying from center. Hope this makes sense.

I must admit that i also have some selfish reasons behind this, but i really don't see why it wouldn't be better. If you can remember back to the old Ultima games, i do believe this is how they worked.

bricks
Sher'Tul
Posts: 1262
Joined: Mon Jun 13, 2011 4:10 pm

Re: Why doesnt the camera stay centered?

#2 Post by bricks »

It's actually much, much better than it used to be. You can actually always stay "centered" if you make a number in the Game Options high enough.
Sorry about all the parentheses (sometimes I like to clarify things).

marvalis
Uruivellas
Posts: 683
Joined: Sun Sep 05, 2010 5:11 am

Re: Why doesnt the camera stay centered?

#3 Post by marvalis »

Setting the scroll distance to 20 does not make the game center on the player, sadly.
If you want to try that, press escape in game and go to game options, then change the value of scroll distance (as bricks already posted)
It would be nice if there could be an option to always have the map centered on the player.
To do this scrolling beyond the border probably has to be enabled somehow.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Why doesnt the camera stay centered?

#4 Post by darkgod »

Hum ? I dont understand, setting it to be higher than half the max number of tiles drawn on screen should always center.
Like if you can display 20x15 tiles, setting it over 10 should work
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Elvisman2001
Thalore
Posts: 153
Joined: Mon Oct 10, 2011 6:23 pm

Re: Why doesnt the camera stay centered?

#5 Post by Elvisman2001 »

That worked for me. Awesome.
Maybe not in the appropriate place, but I am supposing it is possible to hard code this in a custom module so that it is how the game works by default and non configurable?

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Why doesnt the camera stay centered?

#6 Post by darkgod »

very easy :) it's the moveViewSurround call in Player:move
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

marvalis
Uruivellas
Posts: 683
Joined: Sun Sep 05, 2010 5:11 am

Re: Why doesnt the camera stay centered?

#7 Post by marvalis »

If I set distance at 20, and I come to the edge, then the map does not stay centered on the player:
edge.jpg
edge.jpg (20.66 KiB) Viewed 2049 times
The map does not 'scroll' beyond its border.

Elvisman2001
Thalore
Posts: 153
Joined: Mon Oct 10, 2011 6:23 pm

Re: Why doesnt the camera stay centered?

#8 Post by Elvisman2001 »

Ah. i see. Thats a semi problem then for what i want to do i think.
I'm still fleshing out my design doc so, i will have to wait till that's done. i like to get everything on paper before i do anything.
I'm wanting to go for a real "board game" type feel in a custom module.

Post Reply