mystery_box_item
This represents the item that comes out of the box and is constantly changing before the box finishes deciding. Can probably be just an /atom or /movable.
Vars | |
claimable | Whether this prize is currently claimable |
---|---|
parent_box | The box that spawned this |
selected_path | The currently selected item. Constantly changes while choosing, determines what is spawned if the prize is claimed, and its current icon |
Procs | |
expire_animation | Sink back into the box |
loop_icon_changes | Keep changing the icon and selected path |
start_animation | Start pushing the prize up |
update_random_icon | animate() isn't up to the task for queueing up icon changes, so this is the proc we call with timers to update our icon |
Var Details
claimable
Whether this prize is currently claimable
parent_box
The box that spawned this
selected_path
The currently selected item. Constantly changes while choosing, determines what is spawned if the prize is claimed, and its current icon
Proc Details
expire_animation
Sink back into the box
loop_icon_changes
Keep changing the icon and selected path
start_animation
Start pushing the prize up
update_random_icon
animate() isn't up to the task for queueing up icon changes, so this is the proc we call with timers to update our icon