Closed exaboy closed 12 years ago
You need to assign k manually as the property k is not created when you use the shortcut.
Do:
missile.k = scene.ticker.currentTick+100;
Thanks for the update thats good to know for future reference! I ended up adding a 'created' property inside the Sprite which I'm assigning when new ones are created.
As you can see above I'm looking to kill the missile after currentTick+100 however this custom variable is not being preserved when interrogating the Sprite object in a later loop. Does this make sense? How can I achieve this?