We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86dd6f0 commit 4967351Copy full SHA for 4967351
examples/stress_tests/many_foxes.rs
@@ -229,6 +229,10 @@ fn keyboard_animation_control(
229
foxes.speed *= 0.8;
230
}
231
232
+ if keyboard_input.just_pressed(KeyCode::Return) {
233
+ *current_animation = (*current_animation + 1) % animations.0.len();
234
+ }
235
+
236
for mut player in animation_player.iter_mut() {
237
if keyboard_input.just_pressed(KeyCode::Space) {
238
if player.is_paused() {
@@ -259,7 +263,6 @@ fn keyboard_animation_control(
259
263
260
264
261
265
if keyboard_input.just_pressed(KeyCode::Return) {
262
- *current_animation = (*current_animation + 1) % animations.0.len();
266
player
267
.play(animations.0[*current_animation].clone_weak())
268
.repeat();
0 commit comments