# How to have text go vertically up screen

**URL:** <https://forum.code.org/t/how-to-have-text-go-vertically-up-screen/37977>\
**Category:** CS Discoveries\
**Tags:** csd-unit-3\
**Created:** [April 13, 2023, 2:16pm UTC](https://forum.code.org/t/how-to-have-text-go-vertically-up-screen/37977 "2023-04-13T14:16:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenkija](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@jenkija](https://forum.code.org/u/jenkija)\
**Post date:** [April 13, 2023, 2:16pm UTC](https://forum.code.org/t/how-to-have-text-go-vertically-up-screen/37977/1 "2023-04-13T14:16:17Z")

</div>

My students are able to have text scroll across the screen however I cannot seem to get the text to scroll vertically. Ideas?

---

<div class="post-metadata">

**Author:** ![pluto](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/pluto/32/9141_2.png) [@pluto](https://forum.code.org/u/pluto)\
**Post date:** [April 13, 2023, 6:00pm UTC](https://forum.code.org/t/how-to-have-text-go-vertically-up-screen/37977/2 "2023-04-13T18:00:04Z")

</div>

This might help:

> [@Moving text in Game Lab](https://forum.code.org/t/moving-text-in-game-lab/37980/3):
>
> Good Afternoon @langilla1, I will give you clear instructions of how to achieve this goal. #1. Create a variable named anything, for my case I will use x. var x; #2. Assign the variable var x = 0; #3. In a loop (preferably the draw loop), add an increment operator or just use the method mentioned below. //i will use addition for mine. remember you can do any operation depending on what you want x++; //or you can use x += 1 //if you do not know, this is the same as x = x + 1 #4. Then in…

---

<div class="post-metadata">

**Author:** ![jenkija](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@jenkija](https://forum.code.org/u/jenkija)\
**Post date:** [April 13, 2023, 9:04pm UTC](https://forum.code.org/t/how-to-have-text-go-vertically-up-screen/37977/3 "2023-04-13T21:04:09Z")

</div>

Thank you so much for the assistance! I could get the horizontal but just couldn’t figure out the vertical!  
This is wonderful! Thanks again!

---

<div class="post-metadata">

**Author:** ![melynn](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/melynn/32/4925_2.png) [@melynn](https://forum.code.org/u/melynn)\
**Post date:** [April 14, 2023, 3:10pm UTC](https://forum.code.org/t/how-to-have-text-go-vertically-up-screen/37977/4 "2023-04-14T15:10:19Z")

</div>

@jenkija,

@pluto 's instructions above will help with the vertical as well. When you look at the text block, there are both x and y parameters. So, you would keep x constant but use @pluto 's advice for incrementing (using the counter pattern) for the y parameter (so use y instead of x).  
 ![text](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/d/d5a0f67f3cf24e65121ad540f7b8c204c8c051e5.png)

Hope that helps!  
~Michelle
