Trajectory.

Get help using Construct 2

Post » Wed May 30, 2012 4:30 pm

Cool, Big Thanks.
B
5
Posts: 25
Reputation: 425

Post » Wed Jun 06, 2012 1:05 am

Hello.
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.mix2012-06-06 01:15:12
B
5
Posts: 25
Reputation: 425

Post » Wed Jun 06, 2012 1:12 pm

@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.

https://dl.dropbox.com/u/6109058/patternMoveDemo3.capxjimand2012-06-06 13:14:03
B
16
S
4
G
1
Posts: 40
Reputation: 2,705

Post » Thu Jun 07, 2012 2:12 pm

Big Thanks @Jimand.
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.
.capx
http://www.sendspace.com/file/no2x8x
B
5
Posts: 25
Reputation: 425

Post » Thu Jun 07, 2012 7:19 pm

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.
B
16
S
4
G
1
Posts: 40
Reputation: 2,705

Post » Sat Jun 09, 2012 1:33 am

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, https://dl.dropbox.com/u/84167552/pathfinder.capx
Thanks.
B
5
Posts: 25
Reputation: 425

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests