8 direction for A-rpg

0 favourites
  • 7 posts
From the Asset Store
Hand-animated Sprite Base for isometric game/animation development
  • Hi <img src="smileys/smiley1.gif" border="0" align="middle" /> every one,

    I'm trying to make a game <img src="smileys/smiley12.gif" border="0" align="middle" />(like many guys..<img src="smileys/smiley5.gif" border="0" align="middle" />).

    I would make a true 8 directionnal movement like a zelda game.<img src="smileys/smiley10.gif" border="0" align="middle" />

    <img src="http://img543.imageshack.us/img543/1103/problmev.png" border="0" />

    But when I do "up + left key" I had no animation..<img src="smileys/smiley19.gif" border="0" align="middle" />   

    Thx for your time.

  • Hmm, I'm have a hunch you are over complicating this. I think the 8 direction behavior already uses Animations for the object if they are named correctly. I am not entirely sure though. This way pushing Up would make him face up without any of these extra events. It would probably fix the problem too.

    I can't seem to find anything at moment.

    Ashley (Thanks for answering <img src="smileys/smiley4.gif" border="0" align="middle" /> ) I can't find any information on this. Is this possible?

  • Didn't test it but it should work ...

    Make a condition

    -Up arrow down : Set Animation to Dos_Marche

    And add to it a sub-event

    -Left Arrow Down : Set animation to DosGauche_Marche


    -Right Arrow Down : Set animation to DosDroite_Marche

    and do the same for Down !

    It should Work !

  • Share the CAPX and I'll be able to make it for you.

    here is a little sample: scirra.com/arcade/example/1762/simple-rpg-movement-system

    Download the CAPX to see the comments on the code.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here is a snippet of what I'm using currently, maybe it can help(Note this works when you use default movement behavior arrow keys):

    <img src="https://dl.dropbox.com/u/77974757/8direction.PNG" border="0" />

    I then add additional buttons using the keyboard plugin.

    <img src="https://dl.dropbox.com/u/77974757/otherbuttons.PNG" border="0" />

  • Hello and thx !

    I'm not at home but i think it will be fine with all this answer.

    TELLES0808 : I will see it.

    : Can you explain to me how we do for the "red X" please ?

    <img src="smileys/smiley27.gif" border="0" align="middle" /> for all

  • senjito

    I just figured it out the other day, I was over-complicating it before as well. Just right click on the condition and choose invert. That will make it so it checks the opposite. Say if up is down and you invert the other three arrows it will only fire when the up key is down.

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