Hi all, simply issue I believe. Think I might of missed something easy D:
I’m moving my entities tile by tile until they reach the waypoint. For some odd reason, multiplying the movement code by delta causes the entities to move faster on the y axis. If I remove the delta time, the movement is the same. I’ve included the movement code below, but I’m worried it could be something else;
Tile nextTile = level.getCompletedPathListTile(entity.getTileIndex()); // Get the tile to move to
Vector2 direction = new Vector2(nextTile.getX() * Level.TILE_WIDTH - entity.getxPos(), nextTile.getY() * Level.TILE_HEIGHT - entity.getyPos());
direction.nor();
// Speed is currently set at 60
entity.setxPos((int) (entity.getxPos() + direction.x * 60 * Gdx.graphics.getDeltaTime()));
entity.setyPos((int) (entity.getyPos() + direction.y * 60 * Gdx.graphics.getDeltaTime()));