All examples · Scenes · As Markdown, for AIs

Owner of

What this example shows

Click a slime. Every part of it is a sprite of its own (the body, each eye, each pupil), and the pointer says which one is under it: info.target. ownerOf(target) is the slime that sprite belongs to, and destroy takes the whole slime: its sprites, its useUpdate and its useCleanup.

S switches to destroy(target) alone: only the sprite clicked goes, and the slime goes on hopping without it. R brings five more.

Starting
Starting
—