Class TilingSprite

All Implemented Interfaces:
Mask

public class TilingSprite extends SpriteBasedEntity<TilingSprite>
A TilingSprite is a graphical entity which displays a tiling image. That image must be loaded into the viewer's texture cache, which you can configure by adding files to the assets folder of your game's project.
See Also:
  • Constructor Details

    • TilingSprite

      public TilingSprite()
  • Method Details

    • setTileX

      public TilingSprite setTileX(int tileX)
      Sets the X offset of the image that is being tiled.
      Parameters:
      tileX - the X offset of the image that is being tiled
      Returns:
      this Entity
    • setTileX

      public TilingSprite setTileX(int tileX, Curve curve)
      Sets the X offset of the image that is being tiled.
      Parameters:
      tileX - the X offset of the image that is being tiled
      curve - the transition to animate between values of this property
      Returns:
      this Entity
    • setTileY

      public TilingSprite setTileY(int tileY)
      Sets the Y offset of the image that is being tiled.
      Parameters:
      tileY - the Y offset of the image that is being tiled
      Returns:
      this Entity
    • setTileY

      public TilingSprite setTileY(int tileY, Curve curve)
      Sets the Y offset of the image that is being tiled.
      Parameters:
      tileY - the Y offset of the image that is being tiled
      curve - the transition to animate between values of this property
      Returns:
      this Entity
    • setTileScale

      public TilingSprite setTileScale(double tileScale)
      Sets both the horizontal and vertical scale of the image that is being tiled.
      Parameters:
      tileScale - the scale of the image that is being tiled
      Returns:
      this Entity
    • setTileScale

      public TilingSprite setTileScale(double tileScale, Curve curve)
      Sets both the horizontal and vertical scale of the image that is being tiled.
      Parameters:
      tileScale - the scale of the image that is being tiled
      curve - the transition to animate between values of this property
      Returns:
      this Entity
    • setTileScaleX

      public TilingSprite setTileScaleX(double tileScaleX)
      Sets the horizontal scale of the image that is being tiled.
      Parameters:
      tileScaleX - the horizontal scale of the image that is being tiled
      Returns:
      this Entity
    • setTileScaleX

      public TilingSprite setTileScaleX(double tileScaleX, Curve curve)
      Sets the horizontal scale of the image that is being tiled.
      Parameters:
      tileScaleX - the horizontal scale of the image that is being tiled
      curve - the transition to animate between values of this property
      Returns:
      this Entity
    • setTileScaleY

      public TilingSprite setTileScaleY(double tileScaleY)
      Sets the vertical scale of the image that is being tiled.
      Parameters:
      tileScaleY - the vertical scale of the image that is being tiled
      Returns:
      this Entity
    • setTileScaleY

      public TilingSprite setTileScaleY(double tileScaleY, Curve curve)
      Sets the vertical scale of the image that is being tiled.
      Parameters:
      tileScaleY - the vertical scale of the image that is being tiled
      curve - the transition to animate between values of this property
      Returns:
      this Entity
    • getTileX

      public int getTileX()
      Sets the X offset of the image that is being tiled.
      Returns:
      the X offset of the image that is being tiled
    • getTileY

      public int getTileY()
      Sets the Y offset of the image that is being tiled.
      Returns:
      the Y offset of the image that is being tiled
    • getTileScaleX

      public double getTileScaleX()
      Gets the horizontal scale of the image that is being tiled.
      Returns:
      the horizontal scale of the image that is being tiled
    • getTileScaleY

      public double getTileScaleY()
      Gets the vertical scale of the image that is being tiled.
      Returns:
      the vertical scale of the image that is being tiled