I am creating a Random Math Engine using the BGE and I am wondering how I can do mathematical operations between two properties. Example: "Property 1 + Property 2" and then it would output the answer in text when you hit "A". But I don't know how to add/subtract/multiply/divide properties together.
Adding, Subtracting, Multiplying, or Dividing properties can be done very easily - you simply need a third property, which you can assign the result to.
You can use logic like this to perform mathematical operations on any type of object. If you want to display the result as a text object, the easiest way is like this:
In this case, the result is stored as a "Text Game Property" - This is a special type of property for text objects, which will display the value as text in game.