How can I convert an int property to a string prop?

Simple question, how can I do this in python? the function str() isn’t included

It works, Did you even try it?


object = GameLogic.getCurrentController().owner

object.string = str(object.int)

I believe it’s included in the python26.zip where blender is installed,
If it doesn’t work then install python.

If worst comes to worst you can try string formatting:

int = 5
print 'the int is: %i' % (int)

More info on string formatting on google or here:
http://www.python.org/doc/2.5.2/lib/typesseq-strings.html

Hmm I already have installed Python 2.6.2…is the fact that it is in my programs folder causing a problem?

Oh oops i forgot to activate my actuator. I’m such a dumb***. Thanks though :slight_smile: