# Unexpected Character Movement

**URL:** <https://discourse.processing.org/t/unexpected-character-movement/16716>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [December 29, 2019, 9:49pm UTC](https://discourse.processing.org/t/unexpected-character-movement/16716 "2019-12-29T21:49:28Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![fredstout](https://avatars.discourse-cdn.com/v4/letter/f/258eb7/32.png) [@fredstout](https://discourse.processing.org/u/fredstout)\
**Post date:** [January 1, 2020, 1:10pm UTC](https://discourse.processing.org/t/unexpected-character-movement/16716/8 "2020-01-01T13:10:17Z")

</div>

> [@glv](#):
>
> text(Directions[w], x2, y2-(textDescent()-textAscent())/2); //calculated

Happy New Year,  
I ran you code and it is working just fine. What I am particularly interested in is the following:

```auto
  text(Directions[w], x2, y2-(textDescent()-textAscent())/2); //calculated

```

I believe that I understand the concept of text decent and text ascent. But your usage here has me scratching my head. I know it works because I can see it. You use the ascent/descent to modify the Y axis but you don’t modify the X axis. Your method is much better than mine so I am changing my compass and clock coding to use your method. I need to work at it a little.  
Thank you again.

---

_[View the full topic](https://discourse.processing.org/t/unexpected-character-movement/16716)._
