Prior value is the previous value at an address. It is similar to Delta, except it's only updated when the current values changes, whereas Delta is updated every frame.
Note: when you use
Prior it is implicit that you are referring to an address and not a value.
Examples of how it can be used:
- Ensures a player visited the previous level instead of using a password to get there:
prior level = 6would only be true if the player isn't currently on level 6, but hasn't been anywhere except the current level since being on level 6. If they came straight from the menu
prior levelwould likely be 0.
Comparison of memory types across several frames:link
Delta is always one frame behind Mem. Prior is only updated when Mem changes.
Last 10 changes on this page:
[2021-01-10 16:03] meleu:fix markdown link
[2021-01-05 10:53] tofof:fix busted link
[2019-06-21 19:03] Jamiras:Updated Prior Values (markdown)
[2019-06-21 19:03] Jamiras:initial documentation