gabmusic's Recent Forum Activity

  • Hi! Thanks for replying!

    Yes, as I said, I've picked nearest dummy.

    I tried to to use system for each Animals already. It doenst work.

    One instance set the var1 correctly, the others get a static value.

    But, could you analyse my event? Is there anything wrong?

  • Hello!

    I have a family called Animals with several instances on same screen.

    This family has a instance variable, let's call it "var1".

    And, finally, I have an sprite called dummy with several instances on same screen.

    I want to every tick set var1 of each instance of family Animals to:

    distance(Animals.X,Animals.Y,dummy.X,dummy.Y), picking the dummy that is nearest to Animals.

    When I have one single instance of Animals, it works. More than one, the var1 get non sense values.

    I don't know how to pick all members of Animals to get this action right.

    Could you help me?

    Thanks!

    Tagged:

  • Thanks, I appreciate it!

  • The official multiplayer tutorials cover how to handle peer inputs from multiple peers in part 4.

    https://www.construct.net/en/tutorials/multiplayer-tutorial-real-598

    I perceived I didnt put the "for each peer" condition on the peer input config.

    What I got putting it was: the third player connected now moves his sprite and the second player sprite, and the second player has no functional input anymore.

    What Am I missing?

  • Thanks, my friend!

  • Hello, everyone!

    Recently I've read a lot about how multiplayer works and have created my own script based on some videos I watched.

    I got a functional peer-to-peer connection, and their controls work fine. Since I want to make a game for 4 player, I tryied connecting more peers in the room. Connection worked, although the player instance of the 2º peer wasn't created.

    I made some adaptations and I the player instance of the 2º peer was being created, but when the 2º peer joined the room, the controls of the 1º peer stopped working. After hours trying to figure out how to make both controls work, I decided to try using different sprites objects for different players. Host works fine, but the peer controls doesnt.

    This is my capx where I'm trying to solve this problem (it's a bit messy, sorry):

    multiplayer.capx

    I really would love to connect 4 players on the game I'm developing. I want to play it with some friends.

    It would be really nice if you send me some tips or a capx that makes more than one peer connection with functional controls. I'm sure someone has already done that. If it wasnt possible, it would make no sense having a maximum peer setup.

    Thanks a lot, my friends!

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, bro!

  • Hello, everyone!

    I started using Photon attempting to create a multiplayere room as a prototype for a complex game idea I have (yeah, I know it can be struggling doing that with C2).

    I had read 3 tutorials here and had seen some videos on youtube. I couldn't reproduce a functional Room where you create it and your pal join it too.

    Here's my sheet:

    So, the guy who creates the room joins it normally, I know that because he goes to layout 2. The second guy, even if I disable "create room" function and try to connect to "teste", it doesnt work.

    Any insights, tips... ?

    Thank you very much!

  • Hey guys, thanks for your answers!

    I fixed the C2 to C3 problem...

    If I cant make the app on C3, I will reach you.

    Thanks!

  • Ok, I was using Mozilla... now I'm using Chrome, and the preview at least runs...

    But now some buttons, when clicked, just make the preview closing.

    See why I hate it?

  • I opened it on C3... well, there're some reasons why I still using C2...

    The main reason is: c3 sucks.

    sorry my hate.

    When I try to preview the game, it doenst load the game...

  • I already have the C3... my license expires in August...

    Is it a good idea exporting my c2 capx to c3 and make the job on there?

    Is it really easy?

    btw, I would have to reconfig all the fonts, right?

gabmusic's avatar

gabmusic

Member since 2 Mar, 2019

Twitter
gabmusic has 1 followers

Trophy Case

  • 5-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

7/44
How to earn trophies