6
« on: July 23, 2013, 11:25:01 am »
You are still not using "create new list" block. Did you read the article about tables I linked in my last post?
As for other problems - there are some fundamental mistakes you make. For example, you need to understand how drawing works.
Everything in "when drawing" happens 60 times per second (every frame). If you need text to be drawn, it needs to be drawn 60 times per second. However, calculations of the text does need to be done only once, when it is created/changed. So - you need check if the list was prepared and run the code to prepare it only if it wasn't prepared or it needs to be changed. Furthermore, you need to separate drawing from calculating, because you need to draw the text every frame.
It is good habit to always start drawing with blocks setting the drawing space (in this case switch to scene space).
You can and should use "print" blocks to check if everything is working as you expect it. Print block will "print" whatever you put inside in the console log (accessible with ~ key in the game). This can be very useful and it could answer your questions.
In general, when you start using an attribute that you don't want to be "remembered" for later frames of the game, you should start using it by (re)setting it something (like you set New Line to 0). You don't set Current Line to 0, but you should, don't count on that it will magically be back to 0 on the second frame of the game.