Floating Text
Posted: Thu Aug 13, 2015 10:45 pm
Is it possible to make, via script, floating text, similar to that of most item movement events appear?
Code: Select all
/c game.get_surface(1).create_entity{name="flying-text", position={0,0}, text="Hello world", color={r=0.5,g=1,b=1}}
Bizz Keryear wrote:Error: LuaGameScript doesn't contain key get_surface
Code: Select all
/c game.surfaces[1].create_entity{name="flying-text", position={0,0}, text="Hello world", color={r=0.5,g=1,b=1}}
Code: Select all
/c game.surfaces[1].create_entity({name="flying-text", position=game.player.position,text="It looks like I am talking",color={r=0.5,g=1,b=1}})
Not in 0.13. It's not in the 0.13.0 doc and not in the current (0.13.5) one.Bizz Keryear wrote:Umm, still according to documentation get_surface should be a thing
oki... was also relying on wiki as source of information ... obviously a mistakedaniel34 wrote:Not in 0.13. It's not in the 0.13.0 doc and not in the current (0.13.5) one.Bizz Keryear wrote:Umm, still according to documentation get_surface should be a thing
http://lua-api.factorio.com/0.13.5/LuaGameScript.html