8 direction for A-rpg

Get help using Construct 2

Post » Tue Aug 28, 2012 6:57 pm

Hi every one,

I'm trying to make a game (like many guys..).

I would make a true 8 directionnal movement like a zelda game.



But when I do "up + left key" I had no animation..   

Thx for your time.
B
6
Posts: 3
Reputation: 804

Post » Tue Aug 28, 2012 8:46 pm

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 ) I can't find any information on this. Is this possible?
B
29
S
4
Posts: 42
Reputation: 2,391

Post » Tue Aug 28, 2012 9:11 pm

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

and

-Right Arrow Down : Set animation to DosDroite_Marche

and do the same for Down !

It should Work !
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Tue Aug 28, 2012 11:52 pm

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

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

Download the CAPX to see the comments on the code.
ImageImageImageImageImageImage
B
93
S
20
G
13
Posts: 1,215
Reputation: 18,990

Post » Wed Aug 29, 2012 2:23 am

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):


I then add additional buttons using the keyboard plugin.
lanceal2012-08-29 02:28:10
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Wed Aug 29, 2012 10:36 am

Hello and thx !

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

@TELLES0808 : I will see it.

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


for all
B
6
Posts: 3
Reputation: 804

Post » Wed Aug 29, 2012 1:21 pm

@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.
lanceal2012-08-29 13:28:09
B
68
S
21
G
15
Posts: 701
Reputation: 15,604


Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt, Lancifer and 28 guests