text box overflow

peastonpeaston Member, PRO Posts: 25
Hi All,
I have an actor that i'm using to display a text version of what you do on the screen ie. >go north ...
how i having it working is I have a table cell that holds the info that should be displayed, every touch is appended on a new line. this works great until you clicked enough to fill all visible lines in the actor then it goes off the screen. is there any way to count the lines in a cell and only get the last 10 lines or some other way to display the text that may work better.

any ideas or suggestions would be a great help.
Pete

Comments

  • KevinCrossKevinCross London, UKMember Posts: 1,894
    I may not be understanding fully but before you append a new row to the table could you not check how many rows are in the table with tableRowCount(table name) and if it's 10, delete the first row and append the new row/action to the table at the end.
Sign In or Register to comment.