How do I make a sprite follow a drawn line?

Get help using Construct 2

Post » Thu Jun 26, 2014 10:01 am

You've all heard of the popular game 'Flight Control'? Well, you may have forgotten but here is a picture to jog your memory:
Image

The aim of the game is to guide planes into the airport without them crashing. You do this by drawing a flight path for each of the planes on the screen.

My question is, how can I draw a line similar to the one in the picture above (the dashed line) and then set a sprite to follow it?

Please note, I am not making a clone of this game but need the feature I have just written about... Thanks for reading!
B
5
Posts: 20
Reputation: 519


Post » Thu Jun 26, 2014 10:44 am

It works but the player does not follow the line smoothly...
B
5
Posts: 20
Reputation: 519

Post » Thu Jun 26, 2014 11:17 am

Sometimes an exact example is not available, but there is sometimes something similar that can be understand and adapted for one's purpose. That's part of the fun :)
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,416
Reputation: 59,518

Post » Thu Jun 26, 2014 11:40 am

09millarda wrote:It works but the player does not follow the line smoothly...


Then you have 2 choices:
1) fix it
2) hire someone to fix it.

I'm not trying to be rude, but that is a awesome example and if that isn't good enough, or good enough to get you on your way then chances are very very slim that anything anyone else offers up isn't going to be of any help, unless we build it for you...

As zenox98 says, you will never find an exact example, heck, you are lucky if you find anything remotely close to what you are after.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718

Post » Thu Jun 26, 2014 12:17 pm

Just want to double check - was it the R0j0hound example you tested?

There was a slight fix for that, which I've attached. As far as I can see, this has smooth movement.
You do not have the required permissions to view the files attached to this post.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,416
Reputation: 59,518

Post » Thu Jun 26, 2014 1:35 pm

@zenox98 You are a godsend! Thanks a crap-ton mate!
B
5
Posts: 20
Reputation: 519

Post » Thu Jul 10, 2014 5:55 pm

Thanks for the modified capx, the original link is dead.
Image Hats off to me too !
Steam user
B
12
S
2
G
1
Posts: 29
Reputation: 933

Post » Wed Mar 09, 2016 4:07 pm

This is exceptional!
B
13
S
2
Posts: 53
Reputation: 855


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, ignaciosimo, nickar and 40 guests