Animation in Blender Game different from Animation Player Preview I have animated a torch and added the text "torch" in the end which only becomes visible when the torch is in the center of the screen. I've used both the eye and the camera in the restrict viewport visibility to make the text appear. When I play the animation with the Animation Player, it works perfectly. In game mode (P), the animation is triggered by a mouse click on the torch. Everything works fine apart from the text which is not visible. What am I doing wrong?

I have already checked the action brick and the settings are fine.

Here's a video:
http://dropshots.com/miracleshappensgoogl/date/2017-05-04/19:20:07
The BGE plays animations different then Blender is doing. Not all channels are supported.

The BGE does not support the "Restrict View" animation channel (nor "Restrict Render", nor "Invisible (Material Game Settings)", nor "Transparency" ). 

You can change the alpha of the material. But this is not that easy with text objects as they are special object.

A possible way is to toggle the visibility via visibility actuator.
You can also change the content of the text object on the fly by setting the "Text" property.

Remarks: When this is aimed for a game or an interactive presentation it might be worth to isolate the text from animation. E.g. A single text object that shows the description of the currently selected object. (This requires more thoughts on the design and is outside of the scope of this answer).