Can i somehow use Movelayer with #USELAYERPOSITION+1?
Posted: Mon Feb 02, 2015 1:33 pm
I am trying to make video tutorial 3 for hollywood with designer tutorials, however, i ran into a problem where i myself need tutoring first.
I am using command MoveLayer(id, xa, ya, xb, yb)
and inside this command it is possible to use #USELAYERPOSITION as any of these x and y co-ordinates.
Thing is, I want that object to move 30 pixels towards left, to achieve this I tried:
MoveLayer(id, #USELAYERPOSITION, #USELAYERPOSITION, #USELAYERPOSITION -30, #USELAYERPOSITION)
but when i use this, the strangest thing is that instead of moving it towards left, like i thought it would, it is actually moving it towards right, and seems like it keeps moving it towards right forever since only way i can get anything to happen in my designer project after that, is to use ESC to abort it.
Normally you could use Constants, ie: #MYDEFAULTNUMBER in mathematic calculations, as example: x = #MYDEFAULTNUMBER + 1, but I couldnt use this #USELAYERPOSITION inside HideLayer command for calculations, at least not the way i thought it would work.
Hence, is it possible to do it the way I was planning to do at all, and if yes, then how?
I am using command MoveLayer(id, xa, ya, xb, yb)
and inside this command it is possible to use #USELAYERPOSITION as any of these x and y co-ordinates.
Thing is, I want that object to move 30 pixels towards left, to achieve this I tried:
MoveLayer(id, #USELAYERPOSITION, #USELAYERPOSITION, #USELAYERPOSITION -30, #USELAYERPOSITION)
but when i use this, the strangest thing is that instead of moving it towards left, like i thought it would, it is actually moving it towards right, and seems like it keeps moving it towards right forever since only way i can get anything to happen in my designer project after that, is to use ESC to abort it.
Normally you could use Constants, ie: #MYDEFAULTNUMBER in mathematic calculations, as example: x = #MYDEFAULTNUMBER + 1, but I couldnt use this #USELAYERPOSITION inside HideLayer command for calculations, at least not the way i thought it would work.
Hence, is it possible to do it the way I was planning to do at all, and if yes, then how?