Attached object does not flip/mirror properly with

0 favourites
  • 6 posts
From the Asset Store
Goodbye to sprite fonts, when you have something new on the anvil for your upcoming Games !
  • I'm having a hard time figuring this out.

    So far this is what is going on:

    I have a character sprite and an attack sprite. The parent sprite (character) has its origin point where I need the attack sprite to spawn. The attack sprite's origin point is all set as well. When pressing D - the attack sprite lines up perfectly as it should. But, when pressing A the attack sprite originates beneath the character sprite.

    Controls:

    A - Left

    D - Right

    Left Mouse - Attack

    Here is the capx file:

    herpderpus

    I welcome any advice on top of provided solutions so that I may avoid making the same mistake in the future.

    Thank you.

  • The link you posted doesn't work -- I'm guessing you meant viledeth.com/herpderpus.capx rather than scirra.com/forums/http//viledeth.com/herpderpus.capx? <img src="smileys/smiley17.gif" border="0" align="middle" />

    I haven't had a chance to look at it yet, just letting you know about that first.

  • All set lol ty.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well... I was unsuccessful with fixing the problem, but I wanted to respond anyway so I wouldn't keep you hanging: I love the art you made here. The style really looks great. <img src="smileys/smiley1.gif" border="0" align="middle" />

    As for, y'know, the problem... If no one else comes around to help you, the only thing I can suggest is a work-around. Basically, when the character is facing left, set the arm about 200 pixels higher or whatever it takes to line it up properly. It does work, technically, but you won't understand what the actual problem was in the first place. It's less than ideal, but it's a good back-up.

  • Thank you for attempting and as for moving up a few pixels, I wanted to do this myself originally but wanted to make sure if there was something I missed.

    Thanks for the compliment on the art!

    For now, I'll move it up a few pixels but I would like the thread to be open in case someone else solves it.

    BTW - Press T for a surprise (make sure you're next to a Ghast)

  • Haha, I noticed that in the code while I was looking through it. Gave me a good laugh -- the music was a good touch. <img src="smileys/smiley36.gif" border="0" align="middle" />

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