|
Tiled graphics problem |
Lamboo
Member #15,469
January 2014
|
So, i'm a newbie in game development and i'm making a terraria clone, everything looks great except the tiles. Its showing strange horizontal lines between the tiles, but only when i center the camera on player, and vertical lines when i'm moving the player, but only whe the camera is locked on player and moving together with it and it occurs like every 5 seconds. This is the camera function: void camera(void) Do you guys have any idea what can it be? Thanks in advance and sorry for my bad english. {"name":"608267","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/7\/57c34503acb49c30b89a4cacc561a228.png","w":1100,"h":650,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/7\/57c34503acb49c30b89a4cacc561a228"} {"name":"608266","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/4\/4\/4418954500038017ccd6ae2e12d4b201.png","w":1096,"h":650,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/4\/4\/4418954500038017ccd6ae2e12d4b201"} |
Elias
Member #358
May 2000
|
-- |
Lamboo
Member #15,469
January 2014
|
It worked thank you so much Elias edit Help |
Elias
Member #358
May 2000
|
How do you draw the player? Either add a floor() to where you draw the player as well, or draw the player without the transform. -- |
Lamboo
Member #15,469
January 2014
|
Thank you for reply, i thought about it and had the idea of making a new camera without floor(), just for the player, and it worked. Thank you so much |
|