Okay, simple logic here eludes me for some reason…
All I want is to click a button and have a physics body object appear on screen (like a box), when I click the the close button I want the object to disappear and create a new object in it’s place.
Sounds simple, but I’ve tried everything in my expertise and this logic doesn’t seem to be as simple as I’m thinking, or is it?
No, sorry - that didn’t do it either. I still end up up two objects on the screen. The only other part of the code I didn’t put is the button itself that fires off the newthing event
it worked fine for me so you must have a scope problem. notice i defined a local copy of “thing” above the function [import]uid: 6645 topic_id: 6816 reply_id: 23832[/import]