KitsuSenpai's Forum Posts

  • your images are broken

  • *bump*

  • The Multiplayer Plugin together with the Signaling server by Scirra is a Peer to Peer connection, where the Signaling server only establish the connection between peers, so realtime Multiplayer. PHP would make a asynchronous Multiplayer, so you have to use AJAX. The third would be a server with Websocket, that would be realtime or asynchronous Multiplayer, depending on you server code. I made a dedicated server with the Multiplayer Plugin, but didn't post a tutorial yet. Or you use a thirdparty plugin like "Photon".

    Witch one works best for your game have you to decide. There are Tutorials for all these variants, but Websocket is a bit more complicated.

  • One way would be to set up a empty variable and set its value to your string with left(), right() or mid() and repeat until you have what you need, but than your string has to be always the same length. A better way would be to use Regex: Exploring Regex in Construct 2

  • I don't think this is possible, because construct would interpret the * or / as a strings in any way. but you could make a function, and could call it with 3 parameters. than on function you can ask if second parameter is a * or / and make than your math.

    CallFunction("Math", 3, "*", 2)
    
    OnFunction("Math"):
        CompareParameter(1 = "*"): SetVar("Result", "Function.Param(0) * Function.Param(2)")
        -or-
        CompareParameter(1 = "/"): SetVar("Result", "Function.Param(0) / Function.Param(2)")[/code:1qqrz6yi]
  • So typical RPG stuff

    I need to try this my self to see how this could work best. But at the moment, i have to little spare time. It could take some time for me to find a good solution. Maybe someone else has a good idea how to solve this.

  • And now I'm confused

    Do you mean something like this?

  • Prolly want an int() in there.

    Oh thats right

    Multiplayer.PeerAliasAt(random(int(Multiplayer.PeerCount)))[/code:3kwvszz0]
    [b][EDIT:][/b]
    Nop i did not, i tested it, no need for [i]int()[/i] 
    [code:3kwvszz0]Multiplayer.PeerAliasAt(random(Multiplayer.PeerCount))
    Multiplayer.PeerIDAt(random(Multiplayer.PeerCount))[/code:3kwvszz0]
    These are working fine
  • For username just use PeerAlias

    Multiplayer.PeerAliasAt(random(Multiplayer.PeerCount))[/code:19bc7vrf]
    Did you read the official 4 Part multiplayer Tutorial provided by Ashlay? [url=https://www.scirra.com/tutorials/892/multiplayer-tutorial-1-concepts]Link[/url]
    This will answer most of your questions.
  • Looks fine for me, do you run the latest Construct 2 version and the latest graphics cart driver?

  • Take a random number between 0 and peercount:

    random(Multiplayer.PeerCount)[/code:3kvfwk9j]
    To get the PeerID of the random picked Player:
    [code:3kvfwk9j]Multiplayer.PeerIDAt(random(Multiplayer.PeerCount))[/code:3kvfwk9j]
  • I would like to know if 2 step authentication like this or this would be possible in any way, that would it make really hard to steal accounts.

    [EDIT:]

    This and this one are even open source, so a plugin for construct would be a nice addition

  • Sure thing

  • Just make for the other line a New object. Its only rotating the object you say it should rotate.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So another question brought to you my noob me

    So, I'm trying to figure out how this works:

    I load a csv table using ajax, I can get info from the loaded table using rex's great plugin CSV and print it in the screen. So far so good.

    Now, I would like to feed the info found within a column using the plugin expression AtCol.

    At first, I figured out it would be something like this: CSV.AtCol("d") (Like I said, noob me )

    What am I missing here as info that I epically fail to see? Thanks in advance!

    The right syntax would be:

    CSV.At(3, 0)[/code:jn6cqnsv]
    3 is the Column and 0 the Row