Move-to On arrived -- is there a way to learn what the target object is where the sprite arrived at

0 favourites
  • 2 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • Hello,

    I am using move-to to move a sprite to an object. The event arrived-at tells me when the sprite arrived. I am however wondering, if there is a way to pick the object where the sprite arrived at?

    thank you,

    Dan

    p.s. one way, perhaps to do this, is to store in an instance variable the name of the object that was used for the move-to command and then retrieve it from there -- i am however wondering if there is a more direct way to achieve that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I would use an instance variable - and store the UID of the object used in the move-to command.

    another way might be to check to see what instance the moving object is overlapping when it arrives, but since you already know when the move-to command is issued, it is less work to just pick that object by UID (by the instance variable) when the time comes.

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