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
Вложения (3)
Type: image/png
Загружено 321 раз
Size: 68,38 KiB
Image could not be loaded
Вы не подали заявку.
Type: image/png
Загружено 430 раз
Size: 56,35 KiB
Image could not be loaded
Вы не подали заявку.
Type: application/octet-stream
Загружено 1478 раз
Size: 7,71 KiB
Image could not be loaded
Вы не подали заявку.