Failed to create entity 'speech-bubble'
Posted: Fri Feb 14, 2020 10:32 am
I use the following codes to create the 'speech-bubble' entity, and game crashed saying unknown entity name 'speech-bubble'.
It would not crash if I replace 'speech-bubble' with 'flying-text'.
It would not crash if I replace 'speech-bubble' with 'flying-text'.
Code: Select all
entity.surface.create_entity {
name = 'speech-bubble',
position = {x = entity.position.x, y = entity.position.y + 1},
text = entity.energy .. 'J',
lifetime = 10
}