Hello everyone,
I'm so sick of this problem and 'Ive been trying to solve it for such a long time, that I've decided to look for help somewhere else.
I'm talking about cameras. In all of my games I have one big problem with cameras. And that is smooth camera movement to player. I have this simple easing camera movement code:
At the first sight, it works really well, the camera is smoothly following player. But then I noticed when camera is just few pixels from it's target, and it's x and y position is gaining high amount of decimal places, it starts to deform every sprite and background, that room contains. I tried rounding this x and y position, this reduces the problem a bit, but i still can see little deformation.
But it's not just with camera easing, it also happens with phones, which has much smaller display than PC.
Let's have an example:
I have my player figure sprite
This is PC outcome
And this is Android's
It's really demoralizing when I test something on computer and it looks pretty, then I try it on phone and it looks like pile of sh*t.
It has to do something with display size and device responsivity, when I had this problem with other games, I just scaled every sprite and room up to 4 times!! It looked good, but then my tiny 8 bit arcade game had almost 100MB, mobile game just can't be that big.
My another nooby solution was to turn on pixel-interpolation, but that makes everything blurry.
This problem makes me so desperate that I'm starting to consider about abadoning Gamemaker, because it's just ruining all of my games.
I want some more advanced solution. Please, help me, I would really appreciate it!!
I'm so sick of this problem and 'Ive been trying to solve it for such a long time, that I've decided to look for help somewhere else.
I'm talking about cameras. In all of my games I have one big problem with cameras. And that is smooth camera movement to player. I have this simple easing camera movement code:
Code:
camera.x = (target.x - camera.x)/20;
camera.y = (target.y - camera.y)/20;
But it's not just with camera easing, it also happens with phones, which has much smaller display than PC.
Let's have an example:
I have my player figure sprite
This is PC outcome
And this is Android's
It's really demoralizing when I test something on computer and it looks pretty, then I try it on phone and it looks like pile of sh*t.
It has to do something with display size and device responsivity, when I had this problem with other games, I just scaled every sprite and room up to 4 times!! It looked good, but then my tiny 8 bit arcade game had almost 100MB, mobile game just can't be that big.
My another nooby solution was to turn on pixel-interpolation, but that makes everything blurry.
This problem makes me so desperate that I'm starting to consider about abadoning Gamemaker, because it's just ruining all of my games.
I want some more advanced solution. Please, help me, I would really appreciate it!!