Petro Bochan wrote:
Hello,
In this behavior:
property aSprite
property aValue
on beginSprite me
set the aSprite of me to sprite the spriteNum of me
set the aValue of me to 9
end beginSprite
on doSomething me
set the aValue of me to the -aValue of me
end doSomething
--
using verbose
Thanks folks, it helped a lot. So the solution I was looking for is:
set the aValue of me to - the aValue of me
it works even without brackets! Great!
All the best
Petro Bochan
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To
And without the brackets it makes it more confusing to read!
Horay!
roymeo
At 12:30 PM 9/29/2004, you wrote:
Thanks folks, it helped a lot. So the solution I was looking for is:
set the aValue of me to - the aValue of me
it works even without brackets! Great!
All the best
Petro Bochan
x = -1 * x
modern lingo syntax could be:
aValue = -1 * aValue
aValue = -(the aValue of me) ? (untested)
the aValue of me is the entire name of the variable you're going after
here, so you need to make sure the negative is outside the entire 'variable'.
At 03:47 PM 9/28/2004, you wrote:
Hello,
In