<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=Sprite%3AisOnStage</id>
	<title>Sprite:isOnStage - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=Sprite%3AisOnStage"/>
	<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=Sprite:isOnStage&amp;action=history"/>
	<updated>2026-11-18T03:18:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.gideros.rocks/index.php?title=Sprite:isOnStage&amp;diff=24686&amp;oldid=prev</id>
		<title>MoKaLux: Created page with &quot;__NOTOC__ &#039;&#039;&#039;Available since:&#039;&#039;&#039; Gideros 2022.1.3&lt;br/&gt; &#039;&#039;&#039;Class:&#039;&#039;&#039; Sprite&lt;br/&gt;  === Description === Returns whether the Sprite is on stage. &lt;syntaxhighlight lang=&quot;lua&quot;&gt; (...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=Sprite:isOnStage&amp;diff=24686&amp;oldid=prev"/>
		<updated>2025-10-18T10:16:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ &amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2022.1.3&amp;lt;br/&amp;gt; &amp;#039;&amp;#039;&amp;#039;Class:&amp;#039;&amp;#039;&amp;#039; &lt;a href=&quot;/index.php/Sprite&quot; title=&quot;Sprite&quot;&gt;Sprite&lt;/a&gt;&amp;lt;br/&amp;gt;  === Description === Returns whether the Sprite is on stage. &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; (...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2022.1.3&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Class:&amp;#039;&amp;#039;&amp;#039; [[Sprite]]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Returns whether the Sprite is on stage.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
(bool) = Sprite:isOnStage()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Return values ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Returns&amp;#039;&amp;#039;&amp;#039; (bool) a value of &amp;#039;&amp;#039;true&amp;#039;&amp;#039; if sprite is on stage, &amp;#039;&amp;#039;false&amp;#039;&amp;#039; otherwise&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local sprite = Sprite.new()&lt;br /&gt;
local pix = Pixel.new(0xff0000, 1, 32, 32)&lt;br /&gt;
pix2 = pix:clone()&lt;br /&gt;
pix3 = pix:clone()&lt;br /&gt;
pix2:setColor(0x00ff00)&lt;br /&gt;
pix3:setColor(0x0000ff)&lt;br /&gt;
-- position&lt;br /&gt;
pix:setPosition(1*32, 1*32)&lt;br /&gt;
pix2:setPosition(1.5*32, 1.5*32)&lt;br /&gt;
pix3:setPosition(2*32, 2*32)&lt;br /&gt;
-- order&lt;br /&gt;
sprite:addChildrenAt ( { pix, pix2, pix3 } )&lt;br /&gt;
stage:addChild(sprite)&lt;br /&gt;
&lt;br /&gt;
pix:removeFromParent()&lt;br /&gt;
print(pix:isOnStage(), pix2:isOnStage(), pix3:isOnStage()) -- false, true, true&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Sprite}}&lt;/div&gt;</summary>
		<author><name>MoKaLux</name></author>
	</entry>
</feed>