Moving a sprite along a path

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
neomodus
Posts: 18
Joined: Fri Apr 13, 2012 10:27 pm

Moving a sprite along a path

Post by neomodus » Sat Feb 07, 2015 6:39 pm

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

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Moving a sprite along a path

Post by jmburnod » Sat Feb 07, 2015 7:19 pm

Hi neomodus ,
Have a look at "move" in LC Dictionary there is some examples how to use it
Best regards
Jean-Marc
https://alternatic.ch

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9358
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Moving a sprite along a path

Post by richmond62 » Sat Feb 07, 2015 8:00 pm

"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 :)

Post Reply

Return to “Games”