anhero / BaconBox

0 stars 1 forks source link

MovieClipEntity:removeChild does not work when passing [MovieClipEntity].entity #1

Closed samueldr closed 10 years ago

samueldr commented 10 years ago

When doing:

movieclips:removeChild(aMovieClip.entity)

I get:

Error: Can't return an entity in LuaHelper::getEntityFromLuaEntity.

Though, using:

movieclips:removeChild(aMovieClip)

Is perfectly cromulent with BaconBox.

JoeDupuis commented 10 years ago

In the example aMovieClip is a LuaEntity and the aMovieClip.entity field is a MovieClipEntity UserData