MegaMente Br's Recent Forum Activity

  • Not working any of the tips of you guys...

    Its a Multiplayer game, and i made this way:

    Host Group:

    - On peer connected

    -- Normal Multiplayer Mechanics*

    -- Call function "teamup" with params (0= 0) (1= player.id)

    - On function:

    -- player var "team" = (function.param(0))

    --- pick by comparison

    ---- Compare player.picked count >= Max Player Per Team

    -------- Call function "teamup" with params (0= self.param(0)+1) (1= player.id)*****

    ----Else

    -------- player set var "team" to function.param(0)

    But for some reason here (*****) the function don't start again. Yes it is supposed to be a loop, I know there is loops made, but this is the only way i found right to do.

  • So did the other post resolve the problem?

    I don't tested it yet

  • This doesn't make much sense, could you rephrase or add more info. The values you provided don't add up to 12 but even ignoring that I don't see how instances with those values relate to a team of 5 players. The title of the post doesn't really match anything I've read.

    I wrote wrong! It was supposed to be 2 teams with 3 players and only 1 team with 2 players. Sorry.

  • So Basically in the layout would have like 12 instances of one object. But there are divided like this:

    4 of them have a Instance variable with value = "Apple"

    2 of them = "banana"

    2 of them = "orange"

    3 of them = "watermelon"

    So, basically its a Multiplayer Game, but i am trying to divide by team. As I said before. And I want to divide this team in 5 each per player and it can be totally randomly to enter a team, but I don't want any team to have 5 or more players so I have to change the team. I can't figure out how to inspect the team and see how much players from the team are and them if more than 5 move to another team.

  • If you go to the 3d Platformer Example from Construct 3 and move the player where 2 walls matches each other and spin like a crazy boy you got ejected from the wall by the opposite way 🤣

    Tagged:

  • I AM SOOO SORYY! Sometimes i mistake English with portuguese! I switched "Team" with "Time" (Time meains "Team" in portuguese), also "Time" is a unused variable that i am going to delete it! Also i was trying "For each (ordered)". Its a bit complicated for me to understand, does it take all variables that is jogador.team = func.param(0) or not? And i changed when call "teamin", its located at the "Peer Group" on a Trigger Once condition when the group becomes active. Also there is a Picture:

    https://ibb.co/pdMfwrr

    * I forgot to change the commnents, if you don't understand something you can ask me!

  • For your question: Yes if there is 10 players there might be 2 teams or more, or even be like: number of players per team if there is 10 online: (0,1,0,1,5,2,1,0) remind the default total is 9 teams, but if it's a custom room it can have custom players per teams amounts, BUT you can ignore that last part if its to hard, i can't even imagine a way to do that.

    I forgot to tell that "Time" is "Team" in english that is a instance variable for each player that works fine. If they are the same team there is no friendly fire.

    And the rest of the Function is just the Trigger:

    _On entered the room

    ____Is Host__Enable "Host" Group___Go to a random team (Doesn't metter, there is no other players)

    ____Else___Enable "Peer" Group___ Call "teamin" function with Param(0)=0 {Start the Loop looking for a team}

  • Param function works as a Loopindex: (Look at the Team Index at the final*)

    Start with 0, than check all the Players("Jogadors") from the team 0 and see how much do it have, if its over 5 call again the same function but add 1 to the 0 Param(loopindex) and checks the team 1 and continues until team 8, but if the number of players is equal or less than 4 the player can enter the team.

    And makes it dynamic for players who create custom maps that can choose bet 1 and 5 players per team.

    -------*-----****-------*-----

    I am also trying to make it random, but it seem REALLY complicated and a bit confuse so i just gave up.

    * I made Team Indexes because multiplayer only support numbers between connections and it might me a more simplier:

    • 0 = Green
    • 1 = Yellow
    • 2 = Purple
    • 3 = Red
    • 4 = Orange
    • 5 = Pink
    • 6 = Blue
    • 7 = Cyan
    • 8 = Gray

    Total of 9 times (0 based)

    Also, thank you for trying help me! I really appreciate it :D

  • Someone Pls?

  • Someone?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So I am trying separete teams in my multiplayer game but I don't know how to do it, here is what i did until now:

    https://ibb.co/5hD8WTz

    Tagged:

  • I am trying to do a basic Google Assistent, basically.

    So this is what I did:

    https://drive.google.com/file/d/1VZfKvWbsXDjo0cBhbnqTEnYrTxtTgMRI/view?usp=sharing

    But for some reason sometimes the system dont answer me properly. Maybe my fault, but anyway you can help me I will be very grateful! I commented the entire project to help you to help me! Oh and somethings are in portuguese, but I think you will understand by reading the comments.

MegaMente Br's avatar

MegaMente Br

Member since 4 Nov, 2020

Twitter
MegaMente Br has 2 followers

Trophy Case

  • 4-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies