How do I animate an obj in a constant path?

Get help using Construct 2

Post » Sat Dec 27, 2014 9:39 am

How do I animate a brick or an obstacle which constantly moves in the same animation path? Like a a patrol.
B
4
S
1
Posts: 20
Reputation: 392

Post » Sat Dec 27, 2014 12:21 pm

If the movement is a simple back and forth or a square then timer behaviour seems like a good idea - just do something like every X seconds set movement angle to movement angle+180 degrees and your obstacle moves back and forth. +90 degrees and it moves in a square pattern (or toy with conditions to make it rectangular).

If it's something more complex search for "finite state machine" here.
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Sat Dec 27, 2014 4:16 pm

@Somebody Thanks for the reply, but this is just jumping from one place to another. I want it to move like an animation.

Consider a simple square sprite moves from left to right and again right to left constantly.
B
4
S
1
Posts: 20
Reputation: 392

Post » Sat Dec 27, 2014 4:24 pm

you mean like so
You do not have the required permissions to view the files attached to this post.
B
255
S
39
G
15
Posts: 1,982
Reputation: 41,005

Post » Sat Dec 27, 2014 4:45 pm

Yes and Thanks you.
B
4
S
1
Posts: 20
Reputation: 392



Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 8 guests