class_particles2d.rst 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_Particles2D:
  4. Particles2D
  5. ===========
  6. **Inherits:** :ref:`Node2D<class_node2d>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. 2D Particle emitter
  11. Member Functions
  12. ----------------
  13. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | :ref:`int<class_int>` | :ref:`get_amount<class_Particles2D_get_amount>` **(** **)** const |
  15. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`Color<class_color>` | :ref:`get_color<class_Particles2D_get_color>` **(** **)** const |
  17. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`Color<class_color>` | :ref:`get_color_phase_color<class_Particles2D_get_color_phase_color>` **(** :ref:`int<class_int>` phase **)** const |
  19. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`float<class_float>` | :ref:`get_color_phase_pos<class_Particles2D_get_color_phase_pos>` **(** :ref:`int<class_int>` phase **)** const |
  21. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`int<class_int>` | :ref:`get_color_phases<class_Particles2D_get_color_phases>` **(** **)** const |
  23. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`ColorRamp<class_colorramp>` | :ref:`get_color_ramp<class_Particles2D_get_color_ramp>` **(** **)** const |
  25. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`Vector2<class_vector2>` | :ref:`get_emission_half_extents<class_Particles2D_get_emission_half_extents>` **(** **)** const |
  27. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`Vector2Array<class_vector2array>` | :ref:`get_emission_points<class_Particles2D_get_emission_points>` **(** **)** const |
  29. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`Vector2<class_vector2>` | :ref:`get_emissor_offset<class_Particles2D_get_emissor_offset>` **(** **)** const |
  31. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | :ref:`float<class_float>` | :ref:`get_emit_timeout<class_Particles2D_get_emit_timeout>` **(** **)** const |
  33. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | :ref:`float<class_float>` | :ref:`get_explosiveness<class_Particles2D_get_explosiveness>` **(** **)** const |
  35. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | :ref:`int<class_int>` | :ref:`get_h_frames<class_Particles2D_get_h_frames>` **(** **)** const |
  37. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | :ref:`Vector2<class_vector2>` | :ref:`get_initial_velocity<class_Particles2D_get_initial_velocity>` **(** **)** const |
  39. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | :ref:`float<class_float>` | :ref:`get_lifetime<class_Particles2D_get_lifetime>` **(** **)** const |
  41. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | :ref:`float<class_float>` | :ref:`get_param<class_Particles2D_get_param>` **(** :ref:`int<class_int>` param **)** const |
  43. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | :ref:`float<class_float>` | :ref:`get_pre_process_time<class_Particles2D_get_pre_process_time>` **(** **)** const |
  45. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  46. | :ref:`int<class_int>` | :ref:`get_process_mode<class_Particles2D_get_process_mode>` **(** **)** const |
  47. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  48. | :ref:`float<class_float>` | :ref:`get_randomness<class_Particles2D_get_randomness>` **(** :ref:`int<class_int>` param **)** const |
  49. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  50. | :ref:`Texture<class_texture>` | :ref:`get_texture<class_Particles2D_get_texture>` **(** **)** const |
  51. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  52. | :ref:`float<class_float>` | :ref:`get_time_scale<class_Particles2D_get_time_scale>` **(** **)** const |
  53. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  54. | :ref:`int<class_int>` | :ref:`get_v_frames<class_Particles2D_get_v_frames>` **(** **)** const |
  55. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  56. | :ref:`bool<class_bool>` | :ref:`is_emitting<class_Particles2D_is_emitting>` **(** **)** const |
  57. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  58. | :ref:`bool<class_bool>` | :ref:`is_flipped_h<class_Particles2D_is_flipped_h>` **(** **)** const |
  59. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  60. | :ref:`bool<class_bool>` | :ref:`is_flipped_v<class_Particles2D_is_flipped_v>` **(** **)** const |
  61. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  62. | :ref:`bool<class_bool>` | :ref:`is_using_local_space<class_Particles2D_is_using_local_space>` **(** **)** const |
  63. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  64. | void | :ref:`pre_process<class_Particles2D_pre_process>` **(** :ref:`float<class_float>` time **)** |
  65. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  66. | void | :ref:`reset<class_Particles2D_reset>` **(** **)** |
  67. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  68. | void | :ref:`set_amount<class_Particles2D_set_amount>` **(** :ref:`int<class_int>` amount **)** |
  69. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  70. | void | :ref:`set_color<class_Particles2D_set_color>` **(** :ref:`Color<class_color>` color **)** |
  71. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  72. | void | :ref:`set_color_phase_color<class_Particles2D_set_color_phase_color>` **(** :ref:`int<class_int>` phase, :ref:`Color<class_color>` color **)** |
  73. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  74. | void | :ref:`set_color_phase_pos<class_Particles2D_set_color_phase_pos>` **(** :ref:`int<class_int>` phase, :ref:`float<class_float>` pos **)** |
  75. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  76. | void | :ref:`set_color_phases<class_Particles2D_set_color_phases>` **(** :ref:`int<class_int>` phases **)** |
  77. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  78. | :ref:`ColorRamp<class_colorramp>` | :ref:`set_color_ramp<class_Particles2D_set_color_ramp>` **(** :ref:`Object<class_object>` color_ramp **)** |
  79. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  80. | void | :ref:`set_emission_half_extents<class_Particles2D_set_emission_half_extents>` **(** :ref:`Vector2<class_vector2>` extents **)** |
  81. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  82. | void | :ref:`set_emission_points<class_Particles2D_set_emission_points>` **(** :ref:`Vector2Array<class_vector2array>` points **)** |
  83. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  84. | void | :ref:`set_emissor_offset<class_Particles2D_set_emissor_offset>` **(** :ref:`Vector2<class_vector2>` offset **)** |
  85. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  86. | void | :ref:`set_emit_timeout<class_Particles2D_set_emit_timeout>` **(** :ref:`float<class_float>` value **)** |
  87. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  88. | void | :ref:`set_emitting<class_Particles2D_set_emitting>` **(** :ref:`bool<class_bool>` active **)** |
  89. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  90. | void | :ref:`set_explosiveness<class_Particles2D_set_explosiveness>` **(** :ref:`float<class_float>` amount **)** |
  91. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  92. | void | :ref:`set_flip_h<class_Particles2D_set_flip_h>` **(** :ref:`bool<class_bool>` enable **)** |
  93. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  94. | void | :ref:`set_flip_v<class_Particles2D_set_flip_v>` **(** :ref:`bool<class_bool>` enable **)** |
  95. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  96. | void | :ref:`set_h_frames<class_Particles2D_set_h_frames>` **(** :ref:`int<class_int>` enable **)** |
  97. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  98. | void | :ref:`set_initial_velocity<class_Particles2D_set_initial_velocity>` **(** :ref:`Vector2<class_vector2>` velocity **)** |
  99. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  100. | void | :ref:`set_lifetime<class_Particles2D_set_lifetime>` **(** :ref:`float<class_float>` lifetime **)** |
  101. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  102. | void | :ref:`set_param<class_Particles2D_set_param>` **(** :ref:`int<class_int>` param, :ref:`float<class_float>` value **)** |
  103. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  104. | void | :ref:`set_pre_process_time<class_Particles2D_set_pre_process_time>` **(** :ref:`float<class_float>` time **)** |
  105. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  106. | void | :ref:`set_process_mode<class_Particles2D_set_process_mode>` **(** :ref:`int<class_int>` mode **)** |
  107. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  108. | void | :ref:`set_randomness<class_Particles2D_set_randomness>` **(** :ref:`int<class_int>` param, :ref:`float<class_float>` value **)** |
  109. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  110. | :ref:`Texture<class_texture>` | :ref:`set_texture<class_Particles2D_set_texture>` **(** :ref:`Object<class_object>` texture **)** |
  111. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  112. | void | :ref:`set_time_scale<class_Particles2D_set_time_scale>` **(** :ref:`float<class_float>` time_scale **)** |
  113. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  114. | void | :ref:`set_use_local_space<class_Particles2D_set_use_local_space>` **(** :ref:`bool<class_bool>` enable **)** |
  115. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  116. | void | :ref:`set_v_frames<class_Particles2D_set_v_frames>` **(** :ref:`int<class_int>` enable **)** |
  117. +------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
  118. Numeric Constants
  119. -----------------
  120. - **PARAM_DIRECTION** = **0** --- Direction in degrees at which the particles will be launched, Notice that when the direction is set to 0 the particles will be launched to the negative
  121. - **PARAM_SPREAD** = **1**
  122. - **PARAM_LINEAR_VELOCITY** = **2** --- Velocity at which the particles will be launched.
  123. - **PARAM_SPIN_VELOCITY** = **3** --- The speed at which particles will spin around its own center.
  124. - **PARAM_ORBIT_VELOCITY** = **4** --- Velocity at which the particles will orbit around the emitter center
  125. - **PARAM_GRAVITY_DIRECTION** = **5** --- Direction in degrees at which the particles will be attracted
  126. - **PARAM_GRAVITY_STRENGTH** = **6** --- Strength of the gravitation attraction for each particle
  127. - **PARAM_RADIAL_ACCEL** = **7**
  128. - **PARAM_TANGENTIAL_ACCEL** = **8**
  129. - **PARAM_DAMPING** = **9** --- Amount of damping for each particle
  130. - **PARAM_INITIAL_ANGLE** = **10** --- Initial angle in radians at which each particle will be spawned
  131. - **PARAM_INITIAL_SIZE** = **11** --- Initial size of each particle
  132. - **PARAM_FINAL_SIZE** = **12** --- Final size of each particle, the particle size will interpolate to this value during its lifetime.
  133. - **PARAM_HUE_VARIATION** = **13**
  134. - **PARAM_ANIM_SPEED_SCALE** = **14**
  135. - **PARAM_ANIM_INITIAL_POS** = **15**
  136. - **PARAM_MAX** = **16**
  137. - **MAX_COLOR_PHASES** = **4**
  138. Description
  139. -----------
  140. Particles2D is a particle system 2D :ref:`Node<class_node>` that is used to simulate several types of particle effects, such as explosions, rain, snow, fireflies, or other magical-like shinny sparkles. Particles are drawn using impostors, and given their dynamic behavior, the user must provide a visibility AABB (although helpers to create one automatically exist).
  141. Member Function Description
  142. ---------------------------
  143. .. _class_Particles2D_get_amount:
  144. - :ref:`int<class_int>` **get_amount** **(** **)** const
  145. Returns the amount of particles spawned at each emission
  146. .. _class_Particles2D_get_color:
  147. - :ref:`Color<class_color>` **get_color** **(** **)** const
  148. Returns the tint color for each particle.
  149. .. _class_Particles2D_get_color_phase_color:
  150. - :ref:`Color<class_color>` **get_color_phase_color** **(** :ref:`int<class_int>` phase **)** const
  151. .. _class_Particles2D_get_color_phase_pos:
  152. - :ref:`float<class_float>` **get_color_phase_pos** **(** :ref:`int<class_int>` phase **)** const
  153. .. _class_Particles2D_get_color_phases:
  154. - :ref:`int<class_int>` **get_color_phases** **(** **)** const
  155. .. _class_Particles2D_get_color_ramp:
  156. - :ref:`ColorRamp<class_colorramp>` **get_color_ramp** **(** **)** const
  157. Returns the :ref:`ColorRamp<class_colorramp>` used to tint each particle
  158. .. _class_Particles2D_get_emission_half_extents:
  159. - :ref:`Vector2<class_vector2>` **get_emission_half_extents** **(** **)** const
  160. Returns the half extents of the emission box.
  161. .. _class_Particles2D_get_emission_points:
  162. - :ref:`Vector2Array<class_vector2array>` **get_emission_points** **(** **)** const
  163. .. _class_Particles2D_get_emissor_offset:
  164. - :ref:`Vector2<class_vector2>` **get_emissor_offset** **(** **)** const
  165. Returns the particle spawn origin position relative to the emitter.
  166. .. _class_Particles2D_get_emit_timeout:
  167. - :ref:`float<class_float>` **get_emit_timeout** **(** **)** const
  168. Returns the amount of seconds during which the emitter will spawn particles
  169. .. _class_Particles2D_get_explosiveness:
  170. - :ref:`float<class_float>` **get_explosiveness** **(** **)** const
  171. .. _class_Particles2D_get_h_frames:
  172. - :ref:`int<class_int>` **get_h_frames** **(** **)** const
  173. .. _class_Particles2D_get_initial_velocity:
  174. - :ref:`Vector2<class_vector2>` **get_initial_velocity** **(** **)** const
  175. .. _class_Particles2D_get_lifetime:
  176. - :ref:`float<class_float>` **get_lifetime** **(** **)** const
  177. Gets the amount of seconds that each particle will be visible.
  178. .. _class_Particles2D_get_param:
  179. - :ref:`float<class_float>` **get_param** **(** :ref:`int<class_int>` param **)** const
  180. Returns the value of the specified emitter parameter
  181. .. _class_Particles2D_get_pre_process_time:
  182. - :ref:`float<class_float>` **get_pre_process_time** **(** **)** const
  183. .. _class_Particles2D_get_process_mode:
  184. - :ref:`int<class_int>` **get_process_mode** **(** **)** const
  185. .. _class_Particles2D_get_randomness:
  186. - :ref:`float<class_float>` **get_randomness** **(** :ref:`int<class_int>` param **)** const
  187. Returns the randomness value of the specified emitter parameter
  188. .. _class_Particles2D_get_texture:
  189. - :ref:`Texture<class_texture>` **get_texture** **(** **)** const
  190. Returns the texture for emitted particles
  191. .. _class_Particles2D_get_time_scale:
  192. - :ref:`float<class_float>` **get_time_scale** **(** **)** const
  193. Returns the emitter time scale
  194. .. _class_Particles2D_get_v_frames:
  195. - :ref:`int<class_int>` **get_v_frames** **(** **)** const
  196. .. _class_Particles2D_is_emitting:
  197. - :ref:`bool<class_bool>` **is_emitting** **(** **)** const
  198. Returns whether this emitter is currently emitting or not
  199. .. _class_Particles2D_is_flipped_h:
  200. - :ref:`bool<class_bool>` **is_flipped_h** **(** **)** const
  201. .. _class_Particles2D_is_flipped_v:
  202. - :ref:`bool<class_bool>` **is_flipped_v** **(** **)** const
  203. .. _class_Particles2D_is_using_local_space:
  204. - :ref:`bool<class_bool>` **is_using_local_space** **(** **)** const
  205. .. _class_Particles2D_pre_process:
  206. - void **pre_process** **(** :ref:`float<class_float>` time **)**
  207. .. _class_Particles2D_reset:
  208. - void **reset** **(** **)**
  209. .. _class_Particles2D_set_amount:
  210. - void **set_amount** **(** :ref:`int<class_int>` amount **)**
  211. Sets the amount of particles spawned at each emission
  212. .. _class_Particles2D_set_color:
  213. - void **set_color** **(** :ref:`Color<class_color>` color **)**
  214. Set the tint color for each particle.
  215. .. _class_Particles2D_set_color_phase_color:
  216. - void **set_color_phase_color** **(** :ref:`int<class_int>` phase, :ref:`Color<class_color>` color **)**
  217. .. _class_Particles2D_set_color_phase_pos:
  218. - void **set_color_phase_pos** **(** :ref:`int<class_int>` phase, :ref:`float<class_float>` pos **)**
  219. .. _class_Particles2D_set_color_phases:
  220. - void **set_color_phases** **(** :ref:`int<class_int>` phases **)**
  221. .. _class_Particles2D_set_color_ramp:
  222. - :ref:`ColorRamp<class_colorramp>` **set_color_ramp** **(** :ref:`Object<class_object>` color_ramp **)**
  223. Sets the :ref:`ColorRamp<class_colorramp>` used to tint each particle. Particle will be tinted according to their lifetimes.
  224. .. _class_Particles2D_set_emission_half_extents:
  225. - void **set_emission_half_extents** **(** :ref:`Vector2<class_vector2>` extents **)**
  226. Sets the half extents of the emission box, particles will be spawned at random inside this box.
  227. .. _class_Particles2D_set_emission_points:
  228. - void **set_emission_points** **(** :ref:`Vector2Array<class_vector2array>` points **)**
  229. .. _class_Particles2D_set_emissor_offset:
  230. - void **set_emissor_offset** **(** :ref:`Vector2<class_vector2>` offset **)**
  231. Sets the particle spawn origin position relative to the emitter center. for example if this value is set to (50, 50), the particle will spawn 50 units to the right and 50 units to the bottom of the emitter center.
  232. .. _class_Particles2D_set_emit_timeout:
  233. - void **set_emit_timeout** **(** :ref:`float<class_float>` value **)**
  234. Sets the amount of seconds during which the emitter will spawn particles, after the specified seconds the emitter state will be set to non emitting, so calling :ref:`is_emitting<class_Particles2D_is_emitting>` will return false. If the timeout is 0 the emitter will spawn forever.
  235. .. _class_Particles2D_set_emitting:
  236. - void **set_emitting** **(** :ref:`bool<class_bool>` active **)**
  237. If this is set to true then the particle emitter will emit particles, if its false it will not.
  238. .. _class_Particles2D_set_explosiveness:
  239. - void **set_explosiveness** **(** :ref:`float<class_float>` amount **)**
  240. .. _class_Particles2D_set_flip_h:
  241. - void **set_flip_h** **(** :ref:`bool<class_bool>` enable **)**
  242. .. _class_Particles2D_set_flip_v:
  243. - void **set_flip_v** **(** :ref:`bool<class_bool>` enable **)**
  244. .. _class_Particles2D_set_h_frames:
  245. - void **set_h_frames** **(** :ref:`int<class_int>` enable **)**
  246. .. _class_Particles2D_set_initial_velocity:
  247. - void **set_initial_velocity** **(** :ref:`Vector2<class_vector2>` velocity **)**
  248. .. _class_Particles2D_set_lifetime:
  249. - void **set_lifetime** **(** :ref:`float<class_float>` lifetime **)**
  250. Sets the amount of seconds that each particle will be visible.
  251. .. _class_Particles2D_set_param:
  252. - void **set_param** **(** :ref:`int<class_int>` param, :ref:`float<class_float>` value **)**
  253. Sets the value of the specified emitter parameter (see the constants secction for the list of parameters)
  254. .. _class_Particles2D_set_pre_process_time:
  255. - void **set_pre_process_time** **(** :ref:`float<class_float>` time **)**
  256. .. _class_Particles2D_set_process_mode:
  257. - void **set_process_mode** **(** :ref:`int<class_int>` mode **)**
  258. .. _class_Particles2D_set_randomness:
  259. - void **set_randomness** **(** :ref:`int<class_int>` param, :ref:`float<class_float>` value **)**
  260. Sets the randomness value of the specified emitter parameter (see the constants secction for the list of parameters), 0 means no randomness, so every particle will have the parameters specified, 1 means that the parameter will be choosen at random, the closer the randomness value gets to 0 the more conservative the variation of the parameter will be.
  261. .. _class_Particles2D_set_texture:
  262. - :ref:`Texture<class_texture>` **set_texture** **(** :ref:`Object<class_object>` texture **)**
  263. Sets the texture for each particle
  264. .. _class_Particles2D_set_time_scale:
  265. - void **set_time_scale** **(** :ref:`float<class_float>` time_scale **)**
  266. Sets the increment or decrement for the particle lifetime. for example: if the time scale is set to 2, the particles will die and move twice as fast.
  267. .. _class_Particles2D_set_use_local_space:
  268. - void **set_use_local_space** **(** :ref:`bool<class_bool>` enable **)**
  269. .. _class_Particles2D_set_v_frames:
  270. - void **set_v_frames** **(** :ref:`int<class_int>` enable **)**