Why trembling?

Ask for help regarding any technical issue or report any bug or OS independent issues.
Locked
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Why trembling?

Post by ElvenProgrammer »

When I move the player I noticed some sort of trembling especially if I press left/right once and then I go up/down.

Maybe the problem is in direction encoding?
User avatar
Sull
Novice
Novice
Posts: 163
Joined: 26 Apr 2004, 16:56
Location: Quebec,Montreal

.

Post by Sull »

what du yu mean?
me when i press left-right very fast i just warp to another place
like 1 square to the left and after warping 3 square to the right?
do it what yu mean?
User avatar
Sull
Novice
Novice
Posts: 163
Joined: 26 Apr 2004, 16:56
Location: Quebec,Montreal

Post by Sull »

Tip
yu should do a code when yu going in diagonal(like up/left,up/right,down/left,/down/right)
yu know what i mean?

instead of sending left(x+y) + up(x+y)
yu should send left-up together ((x+x) + (y+y))

thats save bandwich

i dont know if diagonal is the apropriate word in english but thats is what i mean

ooooooooooo-|
ooooooooo+
ooooooo+
ooooo+
ooo+
+

the (+) mean the movement direction and the (o) mean map square
Locked