Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Hey there
I like to create sprites (from existing ones) with an add button and delete them with delete button.
Hope someone can help me:)
You can choose another way to spawn and delete the sprite:
drive.google.com/open
Okay yess to add enemys is easy but how can i just delete one, if i press the delete button and not all?
Any ideas? :D
how would it know which one to delete? The last one created? one you clicked on? a random one?
there are lots of ways to "pick" a single instance, and then it will only destroy the one you picked. But it is up to you to tell it how to pick just one instance.
A random one would be deleted. Could you explain how to do that?
To explain: there are animals wandering around in a cage and if you wanna let one out/free or sell it, one sprite/animal gets deleted. Otherway with create sprite for adding animals.
Im working on a prototype now.
Develop games in your browser. Powerful, performant & highly capable.
You can add and delete with my example. => Sprite Destroy.
In case you want to delete randomly, you can use:
System > Pick Random Instance
And Action is destroy your sprite.
Okay thx it worked.
Now i like to upgrade it. I created a global number and want to spawn sprites like the number( gn=3 > 3 sprites moving).
How can i do that?
And how can i save the properties of a sprite? When i delete it in layout and spawn it with command, it gets random size and dont add the behaviors.