lightning_'s Recent Forum Activity

  • at ExpValue.set_int (ExpressionValue, set integer)

    Photon.RoomPlayerCount (Count as in number, as in int)

    str(13_room_names.SelectedText) (turns 13_room_names.SelectedText into a string, which it already is so using str() is unneccesary anyway)

    I'm not 100% sure what you exactly wanted to do. It's either that you wanted to do

    Photon.RoomPlayerCount(int(13_room_names.SelectedText))

    Or, since you have room_names in there, you didn't want to set Photon.RoomPlayerCount but Photon.RoomName (or something along those lines. I'm not familiar with Photon)

    What I want, I will explain briefly. I want to know how many players are in the room without connecting to it.

    Photon.RoomPlayerCount(int(13_room_names.SelectedText))

    I already wrote this line on "int" he swears and says that the value should be only string.

    I wrote the room number

    Photon.RoomPlayerCount("1") and so on but nothing helps, an error pops up. I don't know what to do. I do not know how to find out how many players are in the room without connecting to it.

  • I am using photon function "Photon.RoomPlayerCount(str(13_room_names.SelectedText))"

    And it gives me this error I can not understand for a week

  • I haven't used it before so I'm not sure - but have you tried putting both quotes and no quotes around the name?

    Photon.RoomPlayerCount(Name)

    Photon.RoomPlayerCount("Name")

    Then the line swears that there is no expression for the name of the object or the variable "Name"

  • Friends, I've been struggling with this problem for a whole week and I can not find an answer.

    I think there is a bug in the plugin itself

    I need to count how many players are in the room without entering it.

    There is such a function in a photon and it can be seen only by casting to a string

    "Photon.RoomPlayerCount(Name)" it constantly returns "0" to the string.

    If there are 2+ players in the room or there are no players at all, it still returns "0" I can not understand what the problem is.

    I tried in a new project but no, it doesn’t work, it constantly gives 0

  • There is a simple project.

    2 buttons.

    Create a room and enter the room.

    First I create a room.

    and another tab in the browser I connect to the room.

    The text should display information about how many players are in a certain room. But I see an error. I need to be able to see the number of players in any room by its name

    See screenshots

    c2community.ru/forum/download/file.php

    c2community.ru/forum/download/file.php

    c2community.ru/forum/download/file.php

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > > Text:

    > > "Hello, this word is [color=blue]blue[/color]"

    >

    > Does this work on construct 2? and how to do it on c2 ?

    SOLUTION

    bro, just create 2 text type object, one standard, and one bigger font :) i that prehistorical software hihi <3 ;3

    And what will it look like? in more detail

  • Text:

    "Hello, this word is [color=blue]blue[/color]"

    Does this work on construct 2? and how to do it on c2 ?

  • in 'code':

    "

    [size=70]🤑 [/size]" & int(MANA)

    Does this work on construct 2? and how to do it on c2 ?

  • Please only post in English on the forum. I used Google Translate on your post.

    See the Text formatting example.

    Does this work on construct 2? and how to do it on c2 ?

  • Please only post in English on the forum. I used Google Translate on your post.

    Try ticking 'Play in background' in the Audio object.

    sorry, my post is in english

  • Friends, the game itself did not work and nothing happened in it if the browser window was minimized. With the help of one plugin, I solved this problem and now the game does not work even if the browser tab is minimized.

    But the sounds and melodies are not played how to fix this is there a plugin for this?

  • Friends in my game have a chat.

    There are 2 teams blue and red.

    It is necessary that when a player from the red team writes SMS to the chat, his text is highlighted in red

    and if the player is from the blue team, then in blue.

    most likely doing with js but i don't know how

lightning_'s avatar

lightning_

Member since 19 Apr, 2021

None one is following lightning_ yet!

Trophy Case

  • 3-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

6/44
How to earn trophies