June 2015
Intermediate to advanced
206 pages
4h 32m
English
In this section, we will animate the fleet so that it has perpetual movement from right to left and vice versa, as shown by the arrows in the following screenshot:

In order to do this, we will learn how to concatenate one animation just after another one is completed. Indeed, we will create an infinite loop of animations so that the fleet is in perpetual movement.
We can concatenate two animations with the on_complete event.
The following code, fragment 1 (of 2), of fleet.py shows how to concatenate these events:
155. # File name: fleet.py (Fragment 1) 156. from kivy.uix.gridlayout import GridLayout 157. ...
Read now
Unlock full access