Hi Xavi,
look at your Code:
id = id + 1
HANDLE2 0 , 0 , id , a , 1
HANDLE2 a , 0 , id , a , 2
HANDLE2 -10 , 0 , id , a , 3
id = id + 1
HANDLE2 REF_X , 0 , id , c , 1
HANDLE2 a + b , 0 , id , c , 2
HANDLE2 10 , 0 , id , c , 3
TRANS2 a , 0
COLOR 1
RECT2 0 , 0 , b , REF_Y
RESTORE 1
You modify the parameter "c" with a handle, but you don't use "c" anywhere !
Only parameter "a" is responsible for translation!
The problem is, that Parameter "a" and "c" are dependent from each other.
If you increase "c", "a" is decreased!
This dependency you can reflect with a short code in Parameter-Script:
IF GLOB_MODPAR_NAME = "c" THEN
a = REF_X - c - b
PARAMETERS a = a
ENDIF
I have added some limits, so that the black box cannot leave the cyan border :-)
Regards.
Jörg
Pièces-jointes (3)
Type: image/png
Téléchargé 321 fois
Size: 68,38 KiB
Image could not be loaded
Vous n'êtes pas connecté.
Type: image/png
Téléchargé 430 fois
Size: 56,35 KiB
Image could not be loaded
Vous n'êtes pas connecté.
Type: application/octet-stream
Téléchargé 1497 fois
Size: 7,71 KiB
Image could not be loaded
Vous n'êtes pas connecté.