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
Allegati (3)
Type: image/png
321 scaricato
Size: 68,38 KiB
Image could not be loaded
Non hai eseguito il login.
Type: image/png
430 scaricato
Size: 56,35 KiB
Image could not be loaded
Non hai eseguito il login.
Type: application/octet-stream
1498 scaricato
Size: 7,71 KiB
Image could not be loaded
Non hai eseguito il login.