How to draw a Path?

Get help using Construct 2

Post » Sun Aug 18, 2013 10:16 pm

Hello! I have a little problem. I would like to know how can I draw paths, to be followed by an object. One example of game is AirControl:
(https://play.google.com/store/apps/details?id=dk.logisoft.aircontrol)

Note: I would like to know how to do it with a mouse and touch!
I've only discovered how to make straight lines.

If possible, anyone could please send me an .capx with an example?
Thank you! :D
B
1
Posts: 3
Reputation: 131

Post » Sun Aug 18, 2013 10:23 pm

This isn't something trivial to do as C2 doesn't have any in-built pathing system at the moment. You'll have to make the path out of small line segments.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

Post » Sun Aug 18, 2013 10:51 pm

Ah, got it. I was trying creating an Sprite, a dot. And I was creating dot after dot trying to make a sinuous line. Does anyone have any idea or any example of how can I set dots to be separated by a fix range or to draw a sinuous line with these dots? So I would try to make a character follow this dots/line. Idk if this work, but I'm trying :D

Please send any .capx with something like that if possible!!
Thanks a lot!
B
1
Posts: 3
Reputation: 131

Post » Mon Aug 19, 2013 4:38 am

I've found it!
https://dl.dropbox.com/u/8367729/construct/example/rocketFollowPath_fixed.capx

:D
B
1
Posts: 3
Reputation: 131

Post » Fri Oct 14, 2016 9:03 pm

Hi @vitortaranto
This thread is a bit old but maybe you can help me with this capx you posted years ago.
It matches exactly my need except for two things:
- When a path is drawn and the rocket moving, how can I prevent the user to draw another path before the first one is finished ?
- How can I make it work on touch device ?
Thanks for any help you can provide me with !
B
32
S
14
G
5
Posts: 232
Reputation: 5,502


Return to How do I....?

Who is online

Users browsing this forum: ramyaswetha, Yahoo [Bot] and 7 guests