Multiple Characters on Screen and Move

Get help using Construct 2

Post » Wed May 08, 2013 10:09 pm

So I am trying to figure out how to have multiple characters on screen and manipulate them in a turn order. For example: C1:move then next characters turn, C2:attack then next characters turn, C3:move, then next characters turn and so on.

I have followed this concept: from @sqiddster
http://www.scirra.com/forum/a-new-question-about-character-selection-solved_topic52397.html

But how do you make only one move or attack and the others be idle? I assume an Inst Var, but not sure.... Thanks
B
21
S
7
G
1
Posts: 128
Reputation: 3,076

Post » Wed May 08, 2013 10:22 pm

How are you wanting to move them, with the arrow keys? Clicking?

You could give each one an instance variable to turn them on or off. When one is on, all the others are off.
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Wed May 08, 2013 10:30 pm

yes, arrow keys, on off is good trying that now, but the problem is events. Don't want to have duplicate events, how do you code the MOVE event to trigger for the ON guy?
B
21
S
7
G
1
Posts: 128
Reputation: 3,076

Post » Wed May 08, 2013 10:52 pm

You could try something like this, where all the movement triggers are sub-events of a check for the "on" variable.
Ahr Ech2013-05-08 22:53:40
B
23
S
7
G
3
Posts: 180
Reputation: 4,064

Post » Thu May 09, 2013 1:36 am

But how do you turn them on off? here is where I am confused. There is ONE PlayerBox, it has a InstVar Status (on/off).

When I design the level I can place four of them (instances) and on 3 set them to off and one to on. But how do I say turn on #2, off is easy, but how do you designate which to turn on?
B
21
S
7
G
1
Posts: 128
Reputation: 3,076


Return to How do I....?

Who is online

Users browsing this forum: flemmig, Jarnopa, nimos100, semaso, Skebab and 10 guests