Isometric sprite facing changing

This forum is currently in read-only mode.
From the Asset Store
Fully animated four directional dungeon guards pack
  • I have a question that I can't figure out. Is there a clean way of making the sprite's facing change when it moves in a certain direction? I have all the keyframes of the sprite made for eight directional movement, I just can't figure out how to make it so when you click right of the sprite, it switches to the sprite for that facing.

    When I start a new event, I get an option for comparing values. That option isn't available in the System selection stuff after you already do the mouse click check. If I make a new event, and do all my angle checking there, won't the angle change be based on the mouse direction all the time? Also, how do you AND two Compare Values together?

    One thing that would be handy is if Compare Values had a "between" pull down option.

    Anyway, anyone know of a good way to do this?

  • [quote:3jdmigfo]I just can't figure out how to make it so when you click right of the sprite, it switches to the sprite for that facing

    How about if you make the sprite look at the mouse when you click? Use the Set Angle toward Position action.

    [quote:3jdmigfo]how do you AND two Compare Values together?

    Every condition in an event must be met for the event to run, i.e. there's an implicit AND for all conditions. So you can just do:

    Value greater than 5

    Value less than 10

    with ordinary Compare Values in the same condition, and it will test if the value is between 5 and 10 (not inclusive). It would make a useful condition though - value is between... I'll add it to the todo list.

  • How about if you make the sprite look at the mouse when you click? Use the Set Angle toward Position action.

    Isometric(or 3/4 view) is what games like Jagged Alliance 2, Baldur's Gate, Commandos, Arcanum, Diablo, etc. use. It's a way of adding a bit of depth to 2D. As such, sprites are typically done in eight facings(or five and mirroring three but that results in other problems). Just angling the sprite would make it look like the player is falling over.

  • Isometric(or 3/4 view) is what games like Jagged Alliance 2, Baldur's Gate, Commandos, Arcanum, Diablo, etc. use. It's a way of adding a bit of depth to 2D. As such, sprites are typically done in eight facings(or five and mirroring three but that results in other problems). Just angling the sprite would make it look like the player is falling over. <img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" />

    Create each angle you need, then use the suggested command.

    Obviously you don't want to rotate the sprite, just set it to the angles you make before hand.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Oh, I'm an idiot. You guys are talking about the angle thing in the animation panel of the interface, right?

  • Yes. <img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" />

  • can you upload the .cap file please!!! <img src="smileys/smiley20.gif" border="0" align="middle" />

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