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
Attachments (3)
Type: image/png
Downloaded 321 times
Size: 68,38 KiB
Image could not be loaded
You are not logged in.
Type: image/png
Downloaded 430 times
Size: 56,35 KiB
Image could not be loaded
You are not logged in.
Type: application/octet-stream
Downloaded 1543 times
Size: 7,71 KiB
Image could not be loaded
You are not logged in.