Hi, so I got it scrolling.
I have a different question. To make things move on the screen, I
guess I should not move them in my main loop, this seems to be a bad
practice.
As I found if I move objects in my main loop manually, then there is
two troubles. One is that sometimes there is "jumping" on the screen
where the screen re-draws half way through my updates. I mean, I am
updating the position of many objects and before I have finished
updating then the screen re-draws.
The other trouble is sometimes the program seems to crash if I do too
many updates in a short amount of time.
So I guess I should move objects by something like follows:
vert.location.y.animator = new
EasingNumericAnimator(Linear.easeInOut, 5.0, false)
var change = new PropertyChangeEffect(vert.location.y, 200.0)
val animate:CompositeEffect = new CompositeEffect(change)
I could make my own EasingNumericAnimator class to do my own movement.
This is good if I want to move a object from x,y to some distance in x
or y. What if I want to do some complex movement for a character in a
game? What if the character is dependent on other game characters
positions? What if the user suddenly change direction for a game
character? Can you point me in the right direction as to how I should
implement this.
Thanks, Philip
On Jul 12, 10:58 pm, "Hicks, Matt" <
mhi...@captiveimagination.com>
wrote: