Difference between revisions of "Flags"

From The Powder Toy
Jump to: navigation, search
(created)
 
(fix newlines / add info on flag 0x1)
 
Line 2: Line 2:
 
There are currently 4 different things stored in flags:
 
There are currently 4 different things stored in flags:
  
1: "Stagnant" - Unknown Use
+
0x1: "Stagnant" - Used by energy particles and water when a particle can't move, to reduce lag by not performing as many checks next frame.<br/>
2: "skip movement for one frame, only implemented for PHOT"
+
0x2: Skip movement for one frame, only works on PHOT (used when created by powered clones)<br/>
4: used for liquid equalization, to keep track of which particles have been checked
+
0x4: used for water equalization, to keep track of which particles have been checked<br/>
8: allows sponge to move, or photons to be decorated. (for compatibility with older saves)
+
0x8: Compatibility flag, which allows sponge to move, or photons to be decorated. (for compatibility with older saves)

Latest revision as of 01:54, 9 October 2015

Flags is a property that is only used with a few different elements. It is not saved. There are currently 4 different things stored in flags:

0x1: "Stagnant" - Used by energy particles and water when a particle can't move, to reduce lag by not performing as many checks next frame.
0x2: Skip movement for one frame, only works on PHOT (used when created by powered clones)
0x4: used for water equalization, to keep track of which particles have been checked
0x8: Compatibility flag, which allows sponge to move, or photons to be decorated. (for compatibility with older saves)