frankj's Forum Posts

  • 2 posts
  • ...thanks a lot LittleStain, I will try it!

    4932004: it's easy, 3 players passing and receiving the ball. Random is for the view of the opponent, like in a real game, he don't know were the ball goes... See it as a small part of a much more complex football match (I mean real football, like we will see in Brazil this summer, only with foot and with a real ball, not an egg... :-)))

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    I have 3 instances of football players and 1 ball on the pitch.

    1. On start, the ball have to move to one random instance of a player

    2. On collision with one player, the ball should move to a random instance of another player.

    My Problem is: How can I target the two players without the ball?

    I need some kind of synthax or path notation wich allows me to adress random instances, like:

    on collision:

         set angle toward position: player.random (instancevariable 1 or 2)

    (and a solution that only a player without ball get the pass)

    I had a hard time with the manual and tutorials and it would be great to get a hint here?

  • 2 posts