Click on an object, go to the position of another

Get help using Construct 2

Post » Sat May 04, 2013 12:52 am

Hello and thanks for reading this message.

I have an object with a top-down repetitive movement, created with a Vertical Sine behavior.

I have another object by clicking on it, stops the Sine movement of the first object.

This second object then should go toward the first object that is now stopped. The problem is not that behavior should I give this second object to go towards the first object.
I tried several behaviors and various events, but I have failed

I have the following code:
Mouse -> On Left Button Clicked on Sprite2 -> Sprite -> Set Sine Inactive.

Now I have to make the second part, but I do not know how to make an object go to another object.

I add an image to understand it better.


Thanks and regards.jesusruiz2013-05-04 00:56:18
B
4
Posts: 17
Reputation: 261

Post » Sat May 04, 2013 1:05 am

One Way to do it

give 2.nd Object Bullet behavior
first turn off the Bullet Speed !


Mouse -> On Left Button Clicked on Sprite2 -> Sprite -> Set Sine Inactive
Add Action -> 2.nd Object -> Set angle toward another Object(Object 1)
Add Action -> 2.nd Object -> Set Bullet Speed to 100yonda2013-05-04 01:07:22
B
18
S
6
G
3
Posts: 197
Reputation: 4,129

Post » Sat May 04, 2013 2:41 pm

Thanks yonda

Ok, I got it to work doing what you told me.

Thanks for your help ;)
B
4
Posts: 17
Reputation: 261


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests