Difference between revisions of "064F"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
<source lang="scm">064F: remove_references_to_particle 167@ </source> | <source lang="scm">064F: remove_references_to_particle 167@ </source> | ||
+ | |||
+ | That example creates an particle at player's location by pressing P. | ||
+ | <source lang="scm"> | ||
+ | {$CLEO .cs} | ||
+ | |||
+ | 0000: NOP | ||
+ | |||
+ | :NONAME_01 | ||
+ | 0001: wait 0 ms | ||
+ | if and | ||
+ | 0256: player $PLAYER_CHAR defined | ||
+ | 0AB0: key_pressed 90 // Z or z | ||
+ | 004D: jump_if_false @NONAME_01 | ||
+ | 04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR offset 0.0 5.0 1.0 //store player coords | ||
+ | 064B: 0@ = create_particle "flame" at 1@ 2@ 3@ type 4 //create the particle | ||
+ | 064F: make_temp_particle_visible_and_remove_references 0@ //make the particle visible and remove references | ||
+ | 0001: wait 500 ms | ||
+ | 0002: jump @NONAME_01 </source> | ||
==Keywords== | ==Keywords== |
Revision as of 15:17, 25 October 2010
{{{games}}}
- Description
- Releases a particle from memory and makes it visible.
- Syntax
- {{{syntax1}}}
- Parameter
This opcode releases a particle from memory and makes it visible.
Sanny Builder example
064F: remove_references_to_particle 167@
That example creates an particle at player's location by pressing P.
{$CLEO .cs}
0000: NOP
:NONAME_01
0001: wait 0 ms
if and
0256: player $PLAYER_CHAR defined
0AB0: key_pressed 90 // Z or z
004D: jump_if_false @NONAME_01
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR offset 0.0 5.0 1.0 //store player coords
064B: 0@ = create_particle "flame" at 1@ 2@ 3@ type 4 //create the particle
064F: make_temp_particle_visible_and_remove_references 0@ //make the particle visible and remove references
0001: wait 500 ms
0002: jump @NONAME_01
Keywords
particle, visible, free memory