How do I set position to an animation point?

0 favourites
  • 8 posts
From the Asset Store
Connect the dots in the correct order and draw happy animals!
  • I have multiple animations with image points set. I've noticed that it will only pick the first animation in the animation list. I've tried naming them also, but this does not seem to sort the issue. The animation I want is like 3 rows down from the top of the list. Can I do some thing like AnimationName.ImagePointName? I tried, but it wouldn't work.

  • You need to set the sprite to the animation you want first and then set position to image point by number.

    If you have 3 animations for a sprite and you want the third animation and the frame with image point 6:

    Set animation Sprite to Third

    Set position to image point 6

    That animation has to be playing before you can select that image point.

    If you change animations such as moving the player then you need to set that same image point in all animations where you want whatever you are attaching to it to be placed.

  • Ah, thanks for explaining, I just couldn't think, though it is basically what I have been doing for changing animations for different movement. Just did not think it was the same for setting position, I was over thinking it xD

  • I've got my problems with image points too... I have several anmiations for an object and per anmiation different image points from where to spawn bullets from.. Accessing them via number works fine, but via name fails.. at least it seems to take a different image point than the one I want to access.. Everything works fine if there's only one animation though..

    Any ideas why accessing the image points via name fails when there are animations? (The animations are set BEFORE I try to access the image points)..

  • I've got my problems with image points too... I have several anmiations for an object and per anmiation different image points from where to spawn bullets from.. Accessing them via number works fine, but via name fails.. at least it seems to take a different image point than the one I want to access.. Everything works fine if there's only one animation though..

    Any ideas why accessing the image points via name fails when there are animations? (The animations are set BEFORE I try to access the image points)..

    It is probably a result of the speed at which the animation is being played. By the time you see the sprite attached to the image of a frame it has already moved to the next frame and so on.

    If that is the case using the Pin behavior is a better choice as it will stay where it is supposed regardless of animation.

    If you need something moving attached to an image point you will need to slow down the frame speed to see it.

  • > I've got my problems with image points too... I have several anmiations for an object and per anmiation different image points from where to spawn bullets from.. Accessing them via number works fine, but via name fails.. at least it seems to take a different image point than the one I want to access.. Everything works fine if there's only one animation though..

    >

    > Any ideas why accessing the image points via name fails when there are animations? (The animations are set BEFORE I try to access the image points)..

    >

    It is probably a result of the speed at which the animation is being played. By the time you see the sprite attached to the image of a frame it has already moved to the next frame and so on.

    If that is the case using the Pin behavior is a better choice as it will stay where it is supposed regardless of animation.

    If you need something moving attached to an image point you will need to slow down the frame speed to see it.

    Unlikely.. 1st, there's nothing attached there, just something spawned from the image point.. and the animation is still no "real" animation, just one frame (because not finished yet, just a placeholder).

  • Try Construct 3

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

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

    > > I've got my problems with image points too... I have several anmiations for an object and per anmiation different image points from where to spawn bullets from.. Accessing them via number works fine, but via name fails.. at least it seems to take a different image point than the one I want to access.. Everything works fine if there's only one animation though..

    > >

    > > Any ideas why accessing the image points via name fails when there are animations? (The animations are set BEFORE I try to access the image points)..

    > >

    >

    > It is probably a result of the speed at which the animation is being played. By the time you see the sprite attached to the image of a frame it has already moved to the next frame and so on.

    >

    > If that is the case using the Pin behavior is a better choice as it will stay where it is supposed regardless of animation.

    >

    > If you need something moving attached to an image point you will need to slow down the frame speed to see it.

    >

    Unlikely.. 1st, there's nothing attached there, just something spawned from the image point.. and the animation is still no "real" animation, just one frame (because not finished yet, just a placeholder).

    Doesn't matter if it is a blank sprite or not. The animation speed with changing image points will make that difficult to see.

    You " I have several anmiations for an object and per anmiation different image points from where to spawn bullets from"

    I was just going off what you said.

  • It's not blank.. the animation is just a frame, not several frames, but a sprite is there.

    And it works flawlessy as soon as I start to reference the image points via their numbers, not their names..

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