In order to clean up the BGE Python API, me and cyborg_ar needed a way to tell users that they were using a deprecated function and should use another one.
Just put this into a deprecated function:
KX_KetsjiEngine::ShowDeprecationWarning("old way", "new way");
For example:
KX_KetsjiEngine::ShowDeprecationWarning("getPosition()", "position property");
Will print "Method getPosition() is deprecated, please use the position property instead" to the console.
The warnings can be turned off with Game -> Ignore Deprecation Warnings.
Description
Description