I decided I wanted to provide an on-screen tutorial for an app. So I placed an arrow next to a button, and supplied some narrative to explain what a button tap would do.
Then I thought, I'll make the arrow move briefly over the button, to simulate a button tap.
Here's the arrow...

And the code I used...
Code: Select all
set the loc of img tAortn to tNX,tNY
wait 20 ticks with messages
set the loc of img tAortn to tX,tY
So, the arrow moves to its new location for 20 ticks...

and then moves back. The effect is quite good. This is fine, so I don't have a problem that needs to be solved, but...
I figured the movement would look smoother if I used 'move' instead of 'set the loc of'. So I changed the above code to...
Code: Select all
move img tAortn to tNX,tNY
move img tAortn to tX,tY in 20 ticks

The arrow seems to embed itself in the button image! It's what a real arrow would do, which is kind of cute, but not what I wanted!
The arrow is not below the button image, nor on top, but stuck halfway in.
Can anyone explain this? BTW: the arrow image is the top numbered layer, so it's not going behind another layer.
Strange huh?
--paul