Click on an object, go to the position of another

0 favourites
  • 3 posts
From the Asset Store
High quality sound effect pack, in the following categories: Simple, negative, pozitive
  • 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 <img src="smileys/smiley19.gif" border="0" align="middle" />

    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.

    <img src="http://oi42.tinypic.com/1qst47.jpg" border="0" />

    Thanks and regards.

  • 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 100

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks yonda

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

    Thanks for your help ;)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)