Game Development Community

Smoothing mouse movements

by Andrea Russo · in Technical Issues · 10/20/2006 (11:06 pm) · 5 replies

Is it possible to smooth mouse movements in order to get a little bit of deceleration before the movement stops?

;)

#1
10/23/2006 (5:26 am)
Hmmmm if mouse i don't know but if you move sprite and wont it to get deceleration it's easy
for example
set linearvelocityx(-Value);
set constantforcex(-value);
try it
#2
10/23/2006 (7:48 am)
Sorry, I didn't explain properly... I mean when I move the mouse and the whole world moves, is it possible to give it a bit of deceleration before the view stops? I think it would look nice.

Thanks Micheal, I'll try this too.
#3
10/25/2006 (2:58 am)
Oh i'm sorry i have a mistake on my last post here is the correct answer
set linearvelocityx(Value);
set constantforcex(-value);


hmm that's though question
i'm also looking at that too

is somebody can help us?
#4
10/27/2006 (4:20 am)
Hmmm do you mount camera on your player?
and you move the player by moving your mouse?
is that so
u can use mount($player,0,0,1,false)
1=mount force ==>adjust as necessary
#5
11/12/2006 (4:24 pm)
Sorry Michael in which file should I do that?