Page 1 of 1

Moving a sprite along a path

Posted: Sat Feb 07, 2015 6:39 pm
by neomodus
Hi
Is it possible to use the move a graphic or button using to the points of a graphic curve feature whilst in a game loop?

What I want to do is to have 3 different curves and move sprites a little bit along each curve during a game loop.
Is this feasible? If so how can it be achieved.
The move a graphic function seems to move the graphic/button along the whole curve until it reaches the end and there seems to be no way of moving it just say several pixels along or limit the movement by milliseconds say.
Thanks

Re: Moving a sprite along a path

Posted: Sat Feb 07, 2015 7:19 pm
by jmburnod
Hi neomodus ,
Have a look at "move" in LC Dictionary there is some examples how to use it
Best regards
Jean-Marc

Re: Moving a sprite along a path

Posted: Sat Feb 07, 2015 8:00 pm
by richmond62
"there seems to be no way of moving it just say several pixels along"

well, I would just have a "curve" made up of a lot of smaller curves with their ends connected :)