Destroying last object in the StartOfLayout event (also tried keyboard events, same) will not destroy the object properly.
Attach a Capx
Description of Capx
Destroys last instance of object type "A" and creates new one. After that tries to move only instance of type "B" next to type "A".
Steps to Reproduce Bug
- Run the capx, and you will see it is working as expected.
- After that, disable the "Wait 0 second" action and run it again.
B will be moved next to first instance of A (which supposed to be destroyed).
(first instance of A is not visible anymore)
First instance of A must be destroyed, and B must be move next to newly created instance of A without using "Wait 0 second" action.
- Chrome: (YES)
- FireFox: (YES)
- Internet Explorer: (YES)
- Node-Webkit: (YES)
Operating System and Service Pack
Windows 8.1 x64 with latets updates.
Construct 2 Version ID
Construct 2 182 Beta