+ 12
How can I make the movement of the player and camera smoother?
The player moves according to the next tile's offset top and offset left, and the camera always has the offset top and left of the player. When pressing any button to move the player, you can see that the player and camera instantly move to the next tile. My question is: How can I make something like a transition for both player and camera when moving to other tile? I tried adding transition for player but then the camera doesn't follow the player properly. I tried adding smooth transition to the camera, like i saw on some stackoverflow question, but it didn't work. Help. https://code.sololearn.com/W633K7RqhVca/?ref=app
9 Antworten
+ 6
you have did tile bases movement i think...
search about linear interpolation...
and add that script in your camera's movememt ...
wait let me give some link
https://en.m.wikipedia.org/wiki/Linear_interpolation
https://youtu.be/8uLVnM36XUc
0
Can i make game without game engine
0
TRxRyzen nope it's going to be extremely difficult u can use engines like unity they support easily and for free
0
I think u can using CSS
- 1
O
- 1
It's long coded required and needs css animations
- 1
Can we make game without game engine
- 1
Seems static sha...try adding little animations
I'm getting there soon
- 1
i think C# is better