Replies: 2 comments 8 replies
-
also to note: i've tried under animations: as player_progress: in the event that's pre-defined and still no luck |
Beta Was this translation helpful? Give feedback.
-
This one is always confusing, and I don't have my code in front of me, but can tomorrow if needed. This is very much a keep it simple thing. Read this (I'm sure you already have): https://docs.missionpinball.org/en/stable/displays/widgets/animation.html?highlight=Status%20bar#animating-a-progress-bar Two important things. It needs to be an event that is triggered on event change, specifically one that has the value as an argument. So your even needs to be spinner_hit or something that is fired when that count increases, otherwise it has no idea what is going on. Second, for value it is always (value) Never more, never less (if there is an exception here someone correct me). But this ties back to the first point, it needs to be an event that carries a value as at argument, and then passes that value via (value). |
Beta Was this translation helpful? Give feedback.
-
Hello, I am trying to get a progression bar to display as it counts the 30 spins toward mode completion. I already have the counter working, but would love to have this visual aid. I am posting the code below. I tried replicating the text for the counted spins but that just has a blank bar displaying still. any suggestions? greatly appreciate it.
It's at the section below mid-page. the rest of the script works as intended.
" - type: rectangle
width: 400
height: 50
x: 490
y: 75%
corner_radius: 10
corner_segments: 10
color: 00FF00
animations:
razorwire_spinner_counter:
- property: width
value: (player|razorwire_spinner_counter) "
#config_version=5
mode:
start_events: selection_mode_razorwire_selected
stop_events: stop_mode_razorwire, ball_ended, stop_mode_cellar, stop_mode_selection_mode
timers:
60s_timer:
start_value: 69
end_value: 0
direction: down
control_events:
- action: start
event: mode_razorwire_started
counters:
razorwire_spinner_counter:
starting_count: 0
count_complete_value: 30
enable_events: enable_qualify
disable_events: disable_qualify
start_enabled: true
reset_on_complete: false
events_when_complete: mode_razorwire_complete, stop_mode_razorwire
count_events: spinner_hit
variable_player:
spinner_hit:
score: 2000000
counter_razorwire_spinner_counter_hit:
razorwire_spinner_counter:
action: set
int: (count)
timer_your_timer_tick:
60s_timer:
int: device.timers.your_timer.ticks_remaining
action: set
slides:
razorwirevideo:
widgets:
- type: video
video: razorwirevideo
Spinner1:
widgets:
- type: Text
text: Shoot The Spinners!
font_name: TrajanProRegular
font_size: 75
color: 65fe08
- type: image
image: hacksawUI
opacity: 0.5
y: 1
x: 1
anchor_x: left
anchor_y: bottom
- type: text
text: (score)
number_grouping: true
y: 16
x: 25
font_size: 36
anchor_x: left
anchor_y: bottom
font_name: TrajanProRegular
color: 65fe08
- type: Text
text: 00:(player|razorwire_60s_timer_tick)
font_size: 50
font_name: digitalclockfont
color: red
x: 490
y: 84.9%
slide_player:
mode_razorwire_started:
razorwirevideo:
priority: 500
expire: 8.7s
slide_razorwirevideo_removed:
Spinner1:
priority: 400
expire: 66.5s
Beta Was this translation helpful? Give feedback.
All reactions