How to make a path on which will move objects?
<img src="http://s18.postimage.org/sjxuxjdg9/image.png" border="0" />
There are probably several ways to do this kind of pattern or tracked movement. My solution is to use invisible way-points. Here is a capx demonstration:
Thank you. But I can not see your file, i use FREE VERSION.
<img src="http://s13.postimage.org/fn25c7crr/Capture.png" border="0" />
You just have to get the latest beta version.
How to do the same thing only smoothly.
I need to send a lot of cubes, smoothly cornering, as if through a pipe.
For sharper cornering, you could try replacing the "on collison" event with a "overlapping object with offset" event, and then be careful in lining up the way-points. Here is the demo with those modifications.
You'll need to play around with the size of the offset, and whether it is positive or negative. You will see my rough attempt at this in the capx.
Thank you for your support.
You may receive a plugin that will do this by drawing a line trajectory.
Try zigzag behavior, it could let you define path with logo-like script.
Develop games in your browser. Powerful, performant & highly capable.
Cool, Big Thanks.
What if I have a lot of objects balls,(method jimand) that need to move on the same trajectory.
How not to make many copies of the balls?
I make a Every 1 sec ---> System Create Object..
Thanks in advance.
mix -- Here is how I would do it. Basically, the answer is to use instance variables in place of the globals from my earlier demos.
Big Thanks —
I have 2 more questions, more difficult.)
1.How do so if the obstacle in the way of appearing, the object of finding the path to bypass this obstacle. (Object found the shortest path to the goal.)
2.At the corners to make a smooth turn.
Regarding your first question, that would be called "path finding," which is a standard topic in game programming, but one I have little background in to date. I think there are some posts about it in the How-to forum.
Regarding "smooth turns," I assume you mean more of a sweeping turn? Not so sharp? If you are using way-points, it would be a matter of setting up more way-points at the corners. It would require some experimentation.
Can anyone share examples 'path finding'?
I can find example with plugin 00Rez (Astar plugin & Pathfinder behavior), but no understand how combined with behavior 'Bullet'.
I want to achieve a smooth motion, like in space.
Here is one example, dl.dropbox.com/u/84167552/pathfinder.capx