Hi everybody,
I'm wondering how I can create a Object/Sprite without adding it to the Layer once before.
For example:
I have fruits falling from the top. If a fruit hits the floor the player loses one life.
How can I setup the fruoit (e.g. add falling behaviour etc) without adding one initial fruit to the layout, which means that it will fall down on game start and costs a life of the player.
Edit:
I tried setting up the fruit and removing it from the layout after that. Then it's saved as Sprite with every setup in the project but if the game tries to init such an object the browser shows an error message.
Thanks.
Best regards