Game Development Community

Best way to see an Echo?

by MikeJ · in iTorque 2D · 06/01/2011 (9:36 am) · 6 replies

I rely heavily on echoing various items while programming and without a console I was wondering what the easiest way to echo a variable would be on a PC and Mac while running the game.

Is there a way to create a dynamic text field and change the value or add to it like a console?

Thanks

#1
06/01/2011 (9:41 am)
Can you provide an example of what variable you want to echo?
#2
06/01/2011 (9:43 am)
echo ("hello");

I want to be able to see if this echos when I run the game. I just want to know how and where to show this?
#3
06/01/2011 (9:46 am)
Depends on what platform you are running on: Windows, OS X, iOS.

Windows: Run from Torsion and look for the echo output

OS X: Check the console.log for the output

iOS: Watch the output window in Xcode

If you want to make it stand out, try using decorators like this:

echo("*** Hello");

That will make it stand out and easier to search for. Is this what you are looking for?
#4
06/01/2011 (9:50 am)
Thank you sir! You have been a big help! Sorry for all of the "noob" questions.
#5
06/01/2011 (9:58 am)
Most welcome. Don't worry about the questions. We are happy to answer them.
#6
06/08/2011 (10:04 am)
@MikeJ I had the same issue, and I still forget how to see the echo, when you run the code using Xcode you need to watch the output and console windows. I just wanted to chime in to let you know you are not alone!