how to make an object patrol on the spot where it is created

Get help using Construct 2

Post » Mon Apr 28, 2014 11:44 am

how do i make it so that whenever the red dot is spawned, it moves left to right and whenever the light blue dot is spawned, it moves up and down? they both spawn in a random area within green border
You do not have the required permissions to view the files attached to this post.
B
5
Posts: 26
Reputation: 283

Post » Mon Apr 28, 2014 12:04 pm

Use the Sine behaviour.
B
57
S
15
G
11
Posts: 912
Reputation: 12,606

Post » Mon Apr 28, 2014 2:36 pm

Not sure what you mean about it adjusting to where it was spawned. The Sine behaviour will always take the sprite's starting location into account. If you want to offset the wave, then adjust the "Period offset" property.

To keep it from leaving the layout, use the Bound to layout behaviour.

I've attached an example to show you the idea in action.

EDIT: Oh, okay, you've deleted your post.
You do not have the required permissions to view the files attached to this post.
B
57
S
15
G
11
Posts: 912
Reputation: 12,606

Post » Mon Apr 28, 2014 2:48 pm

Message: notalkingplz is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
GeometriX wrote:Use the .


thanks =] played around with it and found a way to make it work for my situation
B
5
Posts: 26
Reputation: 283


Return to How do I....?

Who is online

Users browsing this forum: Lordshiva1948, Yahoo [Bot] and 53 guests