Moving sprites between tiles in the isometric world

I'm looking for information on how to move (and animate) 2D sprites in an isometric game world, but their movement animates smoothly, like traveling from tile to tile, as opposed to jumping from the borders of one tile to the borders of the next.

An example of this is the Transport Tycoon game, where trains and wagons often have half one tile and half another.

+3
source share
3 answers

Drawing sprites in the right place is not too difficult. Projection Formula:

screen_x = sprite_x - sprite_y
screen_y = (sprite_x + sprite_y) / 2 + sprite_z

sprite_x sprite_y - ( ). - , , 32x16 ( 32x32), 5 , .. 1/32 .

- , . OpenGL , z-, . GDI, DirectX .., . Transport Tycoon . , - . - masm. TT . , Mac ( PS1 dev, 6 ).

P.S. , . Ferrari, Mac, , .

+10

, ( ). [0, 1]. , :

  • (

, . , , , /.

+4

Why do you think that he will move from tile to tile? You can position your sprite at any x, y coordinate.

First create a background buffer, and then place the sprites on top of it.

0
source

Source: https://habr.com/ru/post/1709167/


All Articles