possible version:
Code: Select all
anchor.surface.create_entity{name = "flying-text", anchor=anchor, position = {0,0.5}, text = text, color = {r=1,g=0,b=0}}
Code: Select all
anchor.surface.create_entity{name = "flying-text", anchor=anchor, offset = {0,0.5}, text = text, color = {r=1,g=0,b=0}}
Also nice to have attributes would be
Code: Select all
speed
Code: Select all
ttl