ALL CAPS?

childbirth
Hi, I'd really all the text in my game to be in capitals, including the user inputted text

how can i do this?

thanks

Alex
Why? Nobody wants to play a game in all caps.

childbirth
i'm making a website, using the game as a basis. it's not a game.

childbirth
Does nobody know how to do this?
any help would be much appreciated
thanks

Alex
You could probably do this by changing all the templates to be all capitals, but that would be fairly tedious.

Another way may be to have a custom Javascript function to output text. There is a function called addText which handles all printing - you could override this function and replace it with a version which capitalises everything.

To do this, you would need to add a Javascript file in the Editor, and call a Javascript function when the game loads. In that function, override addText like this (note - untested!):


window.addText = function(text) {
if (_currentDiv == null) {
createNewDiv("left");
}

_currentDiv.append(text.toUpperCase());
scrollToEnd();
}


Here I've just taken the existing addText function, and changed the _currentDiv.append line to make the text upper case.

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums