#Can run_if handle "this input just pressed OR this other input just pressed"?
3 messages · Page 1 of 1 (latest)
You can combine any number of run conditions together using methods like https://docs.rs/bevy/latest/bevy/ecs/prelude/trait.Condition.html#method.or_else and https://docs.rs/bevy/latest/bevy/ecs/prelude/trait.Condition.html#method.and_then
A system that determines if one or more scheduled systems should run.
For example:
jump.run_if(
input_just_pressed(KeyCode::Space)
.or_else(
input_just_pressed(KeyCode::KeyW)
)
)