(target-y 0.5)
; Speed is limited to these for the Yoshi cam
- (max-speed-x 80)
+ (max-speed-x 100)
(max-speed-y 100)
; Used in YI camera to adjust to max_speed relatively to player speed
; If YI camera is in no-scrollmode it will go to scrollmode again if tux
; reaches this part of the screen, make sure this value is bigger than edge-x
; to avoid sudden camera stops
- (sensitive-x 0.35)
+ ; Set to <= 0 to deactivate nonscroll mode
+
+ ;(sensitive-x 0.35)
+ (sensitive-x -1)
(dirchange-time 0.2)
)
float dirchange_time;
// edge_x
float edge_x;
+ // when too change from noscroll mode back to lookahead left/right mode
+ // set to <= 0 to disable noscroll mode
float sensitive_x;
float clamp_y;
else if (player->dir == ::LEFT) walkDirection = LOOKAHEAD_LEFT;
else walkDirection = LOOKAHEAD_RIGHT;
- float LEFTEND = SCREEN_WIDTH * config.sensitive_x;
- float RIGHTEND = SCREEN_WIDTH * (1-config.sensitive_x);
+ float LEFTEND, RIGHTEND;
+ if(config.sensitive_x > 0) {
+ LEFTEND = SCREEN_WIDTH * config.sensitive_x;
+ RIGHTEND = SCREEN_WIDTH * (1-config.sensitive_x);
+ } else {
+ LEFTEND = SCREEN_WIDTH;
+ RIGHTEND = 0;
+ }
if(lookahead_mode == LOOKAHEAD_NONE) {
/* if we're undecided then look if we crossed the left or right