KitsuSenpai's Recent Forum Activity

  • Make a invisible mask sprite, if clicked on it, send the player to this coordinates. add path finding and done

  • here is an example:

    CAPX

    EDIT:

    you could even spawn by probability:

    CallFunction("SpawnPipe", "random(4)")
    
    If Parameter > 0: Spawn
    Else: Skip[/code:1xuw8afs]
    This would be a chance of 3:1
  • I only know about variable & I don't know anything about index variable

    Sry create a variable with value of 0

  • You could make two index variables (Index and Skipped) and create a random number between 0-1.

    if 0 no pipe will spawn and Skipped+1and Index+1

    if 1 pipe spawns and Index+1

    spawn pipe at:

    X = pipe.width*index and Y = BottemOfLayout-pipe.width*(index-skipped)

    EDIT: Sry made a mistake, this one works better

  • Another way would be to "save" the incoming information in a "number" variable using float() at worst to cast the value as a floating value.

    This will directly set the value of the variable to a number and will prevent you having to do any string manipulation.

    That works best This will come in Handy, i thoght that would make an error, but it work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a feature request

    This would be nice:

    Public-key cryptography

  • 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.

KitsuSenpai's avatar

KitsuSenpai

Member since 20 Feb, 2015

None one is following KitsuSenpai yet!

Trophy Case

  • 9-Year Club
  • RTFM Read the fabulous manual

Progress

10/44
How to earn trophies