Multiple Characters on Screen and Move

0 favourites
  • 5 posts
From the Asset Store
This is a code so you can see the same skin on all screens (peers). Each peer gets a skin, in addition to 4 directions t
  • 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

    construct.net/en

    But how do you make only one move or attack and the others be idle? I assume an Inst Var, but not sure.... Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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?

  • You could try something like this, where all the movement triggers are sub-events of a check for the "on" variable.

    <img src="http://i.imgur.com/I1RcVR6.png" border="0" />

  • 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?

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