builder
builder copied to clipboard
Non intuitive clone behavior
main.spx
var (
ODL ODL
)
onMsg "die", => {
ODL.clone
}
ODL.spx
onClick => {
broadcast "die"
die
}
when i create click the ODL , expect the main.spx will create a ODL 's clone , but got
16:25:56.6942025/07/22 16:25:56 addClonedShape: clone a deleted sprite
also ODL.spx can modify to follow , but it actually bring lots of unused template code
onClick => {
broadcast "die"
die
}
onCloned => {
show
}
onStart => {
clone
}