Pardon the mess, Play My Code is in beta!

READY TO PLAY?
CLICK TO LOG IN!

sign up - lost password

console

This function only works in the editor. In a published game, it silently does nothing.

console( output )

In the editor, underneath the canvas, is an output area. When this function is called, and has a value passed in, it is outputted to this pane.

This is very useful for logging details from inside your game.

// outputs the numbers 0 to 9 into the console
10.times() do |i|
    console( i )
end