ANIM mot-clé
Anime un objet à partir d'une liste de possibilités. Pour arrêter une animation à tout moment, utiliser STOP ANIM.
Syntaxe
ANIM object, "yoyo", (x1, y1)-(x2, y2), duration, limit
ANIM object, "move", (x1, y1)-(x2, y2), duration, limit
ANIM object, "rotate", val1, val2, duration, limit
ANIM object, "scale", val1, val2, duration, limit
ANIM object, "alpha", val1, val2, duration, limit
ANIM object, "blink", duration, limit
ANIM object, "rotate-right", duration, limit
ANIM object, "rotate-left", duration, limit
Paramètres
- object: objet (requis)
- x1: entier de position horizontale 1 (requis)
- y1: entier de position verticale 1 (requis)
- x2: entier de position horizontale 2 (requis)
- y2: entier de position verticale 2 (requis)
- val1: valeur entière 2 (requis)
- val2: valeur entière 2 (requis)
- duration: un délai en millisecondes (si non spécifié, la valeur par défaut est 1000)
- limit: nombre maximal d'exécutions, par défaut illimité
Exemple
ANIM myImage, "yoyo", (150, 150)-(150, 180)
ANIM myImage, "yoyo", (150, 150)-(150, 180), 2000
ANIM myImage, "yoyo", (150, 150)-(150, 180), 2000, 3
ANIM myText, "move", (10, 10)-(500, 400)
ANIM myText, "move", (10, 10)-(500, 400), 5000
ANIM myText, "move", (10, 10)-(500, 400), 5000, 2
ANIM imgSun, "rotate", -10, 10
ANIM imgSun, "rotate", -10, 10, 6000
ANIM imgSun, "rotate", -10, 10, 6000, 4
ANIM myButton, "scale", 100, 90
ANIM myButton, "scale", 100, 90, 2000
ANIM myButton, "scale", 100, 90, 2000, 3
ANIM myHero, "alpha", 100, 50
ANIM myHero, "alpha", 100, 50, 1500
ANIM myHero, "alpha", 100, 50, 1500, 2
ANIM myCursor, "blink"
ANIM myCursor, "blink", 500
ANIM myCursor, "blink", 500, 6
ANIM carWheel, "rotate-right"
ANIM carWheel, "rotate-right", 1000
ANIM carWheel, "rotate-right", 1000, 10
ANIM carWheel, "rotate-left"
ANIM carWheel, "rotate-left", 1500
ANIM carWheel, "rotate-left", 1500, 6
Retour à la liste des mots clés.