How do I give my player a tail

Get help using Construct 2

Post » Tue Apr 29, 2014 1:30 pm

Image any ideas on how to best achieve a similar tail effect in c2?
B
63
S
12
G
6
Posts: 456
Reputation: 8,985

Post » Tue Apr 29, 2014 1:39 pm

You need an animation that shows the tail.
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Tue Apr 29, 2014 1:45 pm

This could be somewhat tricky to do, I would store the previous position of the player at different ticks, then apply a set position to the stored position after a given time, for each part of the tail.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Tue Apr 29, 2014 1:59 pm

No idea if this is a good example but I like to post easy examples today :)
You do not have the required permissions to view the files attached to this post.
B
44
S
10
G
8
Posts: 437
Reputation: 6,468

Post » Tue Apr 29, 2014 2:02 pm

This is a 10 second example - be sure to clean it up if you use it (destroy the trail sprites if they're below a certain size - alternatively just add the fade property)

It doesn't really add a seamless tail though, to do that I'd experiment with the idea of a tail sprite, the width of which would be multiple of the platforms speed, so the faster your moving the longer the tail.

The angle could be determined by an invisible sprite with a 1 second life span spawned every second or so at the player's x/y.
You do not have the required permissions to view the files attached to this post.
B
62
S
23
G
10
Posts: 647
Reputation: 10,578

Post » Tue Apr 29, 2014 2:45 pm

good ideas, thanks everyone
B
63
S
12
G
6
Posts: 456
Reputation: 8,985


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests