# pixel_x var (atom)

Source: https://ref.dm-lang.org/atom/var/pixel_x

### Default value
> 0

This displaces the object's icon on the x-axis by the specified number of pixels. In a project with a standard 32x32 tile size, this can range from -32 to +32. (You can get away with larger displacements, but they are not guaranteed to work for objects off the edge of the map.)

Since overlays and images can each have their own additional displacements, this makes it possible to create visual effects that extend beyond the object's own cell in the turf grid, but which automatically move around with the object.

This effect is purely visual and does not influence such things as movement bumping or view() range calculations.

### See also
- [animate_movement var (movable atoms)](https://ref.dm-lang.org/atom/movable/var/animate_movement.md)
- [glide_size var (movable atoms)](https://ref.dm-lang.org/atom/movable/var/glide_size.md)
- [pixel_y var (atom)](https://ref.dm-lang.org/atom/var/pixel_y.md)
- [pixel_w var (atom)](https://ref.dm-lang.org/atom/var/pixel_w.md)
- [pixel_z var (atom)](https://ref.dm-lang.org/atom/var/pixel_z.md)
- [icon_size var (world)](https://ref.dm-lang.org/world/var/icon_size.md)
- [map_format var (world)](https://ref.dm-lang.org/world/var/map_format.md)
- [Pixel movement](https://ref.dm-lang.org/notes/pixel-movement.md)
