Not sure I understand the problem. You only need to display things you want do display. Any math you have only shows if you tell it to show:
[lua]local number1 = 10
local number2 = 2
local showNumber1 = display.newText(number1, 10,10, native.SystemFont,16)
local showNumber2 = display.newText(number2, 10,30, native.SystemFont,16)
local number3 = number1 * number2
local number4 = number1 / number2
local number5 = number4 + number3
local showNumber5 = display.newText(number5, 10,60, native.SystemFont,16)
number5 = number5 * number1 * 2 / number3 + nummber4
showNumber5.text = number5[/lua]
You do your math with normal variables and they will not show. For the things you want to display, you have display text objects who’s first parameter is the default string to show. Later if you want to change what is showing, you just set its .text property to the new value and it will update automatically.
So all of my numberX = whatever calculations never display anything. If I want to show them, I have to either create a new display.newText() object or change an existing one’s .text property.
does that help? [import]uid: 19626 topic_id: 13913 reply_id: 51138[/import]