How to change speed of moving object?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 43
- Joined: Mon Oct 15, 2012 6:44 pm
How to change speed of moving object?
How to change speed of moving object while its moving?
Re: How to change speed of moving object?
Hi Ahmed,
You can do that by different ways
You can define the during of the move like that:
or set the moveSpeed property:
or building a list of points between the startloc and endloc and move the control in a loop
Best regards
Jean-Marc
You can do that by different ways
You can define the during of the move like that:
Code: Select all
move NyControl to tLoc in 2 seconds
Code: Select all
set the moveSpeed to 300 -- (pixelsPerSecond, 200 by default)
Best regards
Jean-Marc
https://alternatic.ch
-
- Posts: 43
- Joined: Mon Oct 15, 2012 6:44 pm
Re: How to change speed of moving object?
Thanks Jean-Marc
these code works
Thank You
Regards
Ahmed F.
these code works

Thank You
Regards
Ahmed F.