I have code to “destroy” a ball
theBall = nil once it hits another object.
but it just drops like through the platform and game play area.
but if I use the below code, it get "destroyed " just as I thought doing = nil would.
if theBall ~= nil then
theBall:removeSelf()
end
any technical reason why this happens ?
Im using the removeself code and it works, I just wanna know why the object=nil
does not work ?
theBall has a body of dynamic.
the platform has a body of static.
[import]uid: 11094 topic_id: 18481 reply_id: 318481[/import]
[import]uid: 12704 topic_id: 18481 reply_id: 70890[/import]