# Fixing screen height block

**URL:** <https://community.thunkable.com/t/fixing-screen-height-block/458825>\
**Category:** Questions about Thunkable X\
**Tags:** tcanvas\
**Created:** [February 11, 2020, 6:00pm UTC](https://community.thunkable.com/t/fixing-screen-height-block/458825 "2020-02-11T18:00:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)\
**Post date:** [February 11, 2020, 6:00pm UTC](https://community.thunkable.com/t/fixing-screen-height-block/458825/1 "2020-02-11T18:00:36Z")

</div>

I am creating a sprite and placing it on the screen at a specified location. As seen in code below, sprite is supposed to be placed in the center of the screen but for unknown reason, the Y axis positioning is not correct.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/6/865f4b57546d790c8815aed6f2c9c53b439d6c8f.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/8/c8ef7197aea2c92e4b2829ef979db167370098c3.png)

The x appears in center but Y is way down the screen.

The value seen 640 is the height of the screen so dividing it by 2 should have placed it in center of screen.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [February 24, 2020, 4:37pm UTC](https://community.thunkable.com/t/fixing-screen-height-block/458825/2 "2020-02-24T16:37:37Z")

</div>

Hi @sysads

Are your using relative or absolute sizing for your screen height/width?

Thanks!

---

<div class="post-metadata">

**Author:** ![lacantant](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/lacantant/32/69038_2.png) [@lacantant](https://community.thunkable.com/u/lacantant)\
**Post date:** [May 15, 2020, 2:07pm UTC](https://community.thunkable.com/t/fixing-screen-height-block/458825/3 "2020-05-15T14:07:33Z")

</div>

It’s OK, the way you did puts the corner in the point, not the center of the object. You could put for instance point x= (screen width/2)-(sprite\_Type width/2)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:26am UTC](https://community.thunkable.com/t/fixing-screen-height-block/458825/4 "2024-11-08T11:26:45Z")

</div>


