So I’ve stored this integer in global variable “newValue” in AppActivity, I’m just trying to figure out the C++ code to retrieve that value and be able to pass it into a function? Can you guys give me the simplest, most dumbed down answer? I’m new to C++ and cocos so I’m amazed I was able to get a character to move around on screen.
How to pass an integer from java to C++ with JNI??
This response on stackoverflow has a relatively simple answer: