That crossing the border can be in two (or even four) places “Physics and collision detection have to deal with fact, that object,.You want more? bananaft (he worked on games with this feature) mentioned much more technical difficulties: The enemy and walk across the border towards the player. Map borders into account! Then you’ll see, that’s shorter to just rotate When measuring the distance between enemy and player you have to take the Even if you don’t stare at the enemy.īut if you see this with a “multiple terrain” perspective lookĪcross the border, it will look like the enemy runs away from you (to Next point: If you only take the central map into account, an enemy The enemy position for game logic and rendering is the same.But what’s when you look across the border? Then the position for the game logic and the actually rendered position is different. For the game logic, every object exists only 1x and only in the central map! If you look at an enemy within your map, all is fine.
0 Comments
Leave a Reply. |