-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(general): No explanation of what needs to be cleaned up when cre…
…ating an instance of a particle system asset YoYoGames/GameMaker-Bugs#7120 * Update of all Particles manual pages
- Loading branch information
Showing
37 changed files
with
1,154 additions
and
1,114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
119 changes: 59 additions & 60 deletions
119
...eMaker_Language/GML_Reference/Drawing/Particles/Particle_Systems/part_particles_clear.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,66 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | ||
<title>part_particles_clear</title> | ||
<meta name="generator" content="Adobe RoboHelp 2020"/> | ||
<link rel="stylesheet" href="../../../../../assets/css/default.css" type="text/css"/> | ||
<script src="../../../../../assets/scripts/main_script.js" type="module"></script> | ||
<meta name="rh-authors" content="Mark Alexander"/> | ||
<meta name="topic-comment" content="Reference page for part_particles_clear"/> | ||
<meta name="rh-index-keywords" content="part_particles_clear"/> | ||
<meta name="search-keywords" content="part_particles_clear"/> | ||
</head> | ||
<body><!--<div class="body-scroll" style="top: 150px;">--> | ||
<h1>part_particles_clear</h1> | ||
<p>With this function you can clear all the particles currently created by the system from the room. It does <i>not</i> reset or remove the particle types themselves, just their visual representation, and if you have any object streaming particles from an emitter, these particles disappear but will begin to appear again the next step after calling this code.</p> | ||
<p> </p> | ||
<h4>Syntax:</h4> | ||
<p class="code">part_particles_clear(ind);</p> | ||
<table> | ||
<tbody> | ||
<tr> | ||
<th>Argument</th> | ||
<th>Type</th> | ||
<th>Description</th> | ||
</tr> | ||
<tr> | ||
<td>ind</td> | ||
<td><span data-keyref="Type_ID_PartSys">Particle System ID</span></td> | ||
<td>The particle system.</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<p> </p> | ||
<h4>Returns:</h4> | ||
<p class="code"><span data-keyref="Type_Void">N/A</span></p> | ||
<p> </p> | ||
<h4>Example:</h4> | ||
<p class="code">if (lives <= 0) | ||
<br/> | ||
{ | ||
<br/> | ||
part_particles_clear(global.Sname); | ||
<br/> | ||
room_goto(rm_intro); | ||
<br/> | ||
}</p> | ||
<p>The above code will check the value of the variable "lives" and if it is equal to 0, it clears all particles from the system and then changes room.</p> | ||
<p> </p> | ||
<p> </p> | ||
<p> </p> | ||
<div class="footer"> | ||
<div class="buttons"> | ||
<div class="clear"> | ||
<div style="float:left">Back: <a href="Particle_Systems.htm">Particle Systems</a></div> | ||
<div style="float:right">Next: <a href="part_particles_count.htm">part_particles_count</a></div> | ||
</div> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title>part_particles_clear</title> | ||
<meta name="generator" content="Adobe RoboHelp 2022" /> | ||
<link rel="stylesheet" href="../../../../../assets/css/default.css" type="text/css" /> | ||
<script src="../../../../../assets/scripts/main_script.js" type="module"></script> | ||
<meta name="rh-authors" content="Mark Alexander" /> | ||
<meta name="topic-comment" content="Reference page for part_particles_clear" /> | ||
<meta name="rh-index-keywords" content="part_particles_clear" /> | ||
<meta name="search-keywords" content="part_particles_clear" /> | ||
</head> | ||
<body> | ||
<!--<div class="body-scroll" style="top: 150px;">--> | ||
<h1><span data-field="title" data-format="default">part_particles_clear</span></h1> | ||
<p>This function clears all particles currently created by the system from the room.</p> | ||
<p>It does <i>not</i> reset or remove the particle types themselves, just their visual representation, and if you have any object streaming particles from an emitter, these particles disappear but will begin to appear again the next step after calling this code.</p> | ||
<p> </p> | ||
<h4>Syntax:</h4> | ||
<p class="code"><span data-field="title" data-format="default">part_particles_clear</span>(ind);</p> | ||
<table> | ||
<tbody> | ||
<tr> | ||
<th>Argument</th> | ||
<th>Type</th> | ||
<th>Description</th> | ||
</tr> | ||
<tr> | ||
<td>ind</td> | ||
<td><span data-keyref="Type_ID_PartSys"><a href="part_system_create.htm" target="_blank">Particle System Instance</a></span></td> | ||
<td>The particle system.</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<p> </p> | ||
<h4>Returns:</h4> | ||
<p class="code"><span data-keyref="Type_Void">N/A</span></p> | ||
<p> </p> | ||
<h4>Example:</h4> | ||
<p class="code">if (lives <= 0)<br /> | ||
{<br /> | ||
part_particles_clear(global.Sname);<br /> | ||
room_goto(rm_intro);<br /> | ||
}</p> | ||
<p>The above code will check the value of the variable <span class="inline2"><a data-xref="{title}" href="../../../../GML_Overview/Variables/Builtin_Global_Variables/lives.htm">lives</a></span> and if it is equal to 0, it clears all particles from the system and then changes room.</p> | ||
<p> </p> | ||
<p> </p> | ||
<div class="footer"> | ||
<div class="buttons"> | ||
<div class="clear"> | ||
<div style="float:left">Back: <a data-xref="{title}" href="Particle_Systems.htm">Particle Systems</a></div> | ||
<div style="float:right">Next: <a data-xref="{title}" href="part_particles_count.htm">part_particles_count</a></div> | ||
</div> | ||
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2022 All Rights Reserved</span></h5> | ||
</div> | ||
<!-- KEYWORDS | ||
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2024 All Rights Reserved</span></h5> | ||
</div> | ||
<!-- KEYWORDS | ||
part_particles_clear | ||
--><!-- TAGS | ||
--> | ||
<!-- TAGS | ||
part_particles_clear | ||
--></body> | ||
--> | ||
</body> | ||
</html> |
Oops, something went wrong.