Quote:
Also don't use 'time_step' with 'mickey' as it's already there.
I don't remember where I heard this, thought it might be wrong (cause example in the manual uses 'time_step'). Anyway I'm glad to help!


Just made a small test, take a look at this code:
Code:
void main(){
	fps_max = 60;
	level_load("");
	wait(3);
	
	ent_create(CUBE_MDL, vector(200, 50, 0), NULL);
	ent_create(CUBE_MDL, vector(200, 0, 0), NULL);
	ent_create(CUBE_MDL, vector(200, -50, 0), NULL);

	while(1){
		
		fps_max = 60;
		if(mouse_right){
			fps_max = 30;
		}
		if(mouse_left){
			fps_max = 512;
		}
		DEBUG_VAR(fps_max, 10);
		
		camera.pan -= mickey.x * time_step; // try without time_step too
		
		wait(1);
	}
}

It can show why it's better to do not use 'time_step' but to allow player to adjust "mouseSpeedFac".


Best regards.

Last edited by 3run; 03/15/16 16:46.

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung