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?
Why trembling?
- ElvenProgrammer
- Founder
- Posts: 2526
- Joined: 13 Apr 2004, 19:11
- Location: Italy
- Contact:
.
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?
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?
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
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