I’m trying to make some damage numbers pop in over the enemy head but instead of doing that they lay flat on the floor plane no matter how I rotate them in the unseen layer. I’ve already tried applying visual transform and rotation and I’ve tried the euler conversion but it isn’t working.
This is the beginning of a patroling function that’s alerts the enemy when you step into their line of sight. Once you do it changes a property value on them and also spawns a 3d exclamation point model over their head. All that works. But the text ‘this_dinfo’ for this damage information has the problem that I mentioned earlier.
def e_patrol(): cont = bge.logic.getCurrentController() scene = bge.logic.getCurrentScene() own = cont.owner e_radar = cont.sensors['ee_vision'] if e_radar.positive: own['ee_alarmed'] = 1 scene.addObject('exclaim_point', own, 1000) this_dinfo = scene.addObject('damage_info', own, 1000) this_dinfo_rotation = this_dinfo.worldOrientation.to_euler() this_dinfo_rotation.z += 90 this_dinfo_rotation.x += 90 this_dinfo.text = 'it\'s over 9000!!!' + own.name