oosyrag's Forum Posts

  • If you're using the built in multiplayer plugin and have designed your game similarly to how the tutorials do...

    The only requirement is that your server can run a browser (or nwjs) and your game, use it to join a room first as the host, and then stay online.

  • It seems to work fine for me, the high score is saved in localstorage, and loaded upon starting. So it wouldn't go back to 0 on its own, unless you specifically had some way to reset it, which I didn't see in your events. Isn't this the intended behavior?

  • You can try having the base object persistent and change immediately, but spawn a copy with the previous animation frame on top of it and fade?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I just use my own computer connected to the internet I have at work.

    I'd recommend recommend just doing it at home first to determine your requirements before spending money monthly on something that you are not familiar with.

  • It looks like a simple 2d array.

    The values within brackets [] indicate the rows, while commas separate the columns.

    You can use tokenat or regex to find out what is at each position directly, or as soon mentioned try parsing it with the json object and reading the values with json expressions.

  • Tentatively.... I haven't tested and I'm just looking through your event sheets on mobile...

    In event sheet 1, on high score exists and get, you don't actually set the text to show that high score.

    I didn't find on your layout where the high score text object was, but if it was defaulted in the layout editor to 11, then it would always show 11 in game if it doesn't get updated.

  • You are misunderstanding the use of word server.

    HostGator hosts websites. When a user goes to this website (with your game on it), the game gets downloaded into their local computer and run from there.

    A multiplayer game server would be a dedicated computer that's always on and connected to the internet, preferablly on a fast/stable connection. You would use this computer to go to the website where you game is located and join a room first, as the host. Since your server is always connected as the host, everyone else who joins would be a peer.

    There are many different kinds of servers. HostGator is a web server. A web server won't be able to run your game, it can only serve it to users. The threads you mention are describing a game servers. A game server can be any computer that has an operating system that can run a browser. Could be one in your house, or office, or one that you rent.

  • Are you sure you are opening a project folder and not an exported game?

  • If you're interested in a little exercise with arrays, try creating tic tac toe. A single player/hotseat version is fine. Use an array as your main data structure.

    Or if you're confident, a battleship type game. You can do a single player style one where ships are placed randomly, and it just counts how many shots taken to finish as a score.

    These should also get you experience using loops in conjunction with array indexes to check win conditions for tic tac toe, or for placing ships in battleship.

  • There are two objects, on a dedicated layer set with the "Force own texture" property, so that the blending mode doesn't affect other layers.

    There are a few specific ways you can do it, depending on the blending mode you want. Here is one example, where the portal is the blended object, as the "Source", and everything on that layer under it is the "Destination. Using the "Destination Out" blending mode, basically everything that the opaque sections of the mask is on top of will be removed, while transparent areas are not affected.

    dropbox.com/s/1qzkmqk5d1qsuqh/blendingmaskexample.c3p (drag the logo towards the right to see how it looks)

  • Fading sounds like a good idea. On fade start, spawn the the same object under itself and set the animation frame to self+1. On fade end, start the next fade.

    For a looping animation you can use a conditional expression to set the next frame to keep it compact.

    If you need persistence, use an invisible helper sprite as the base object.

  • Honestly I still have no idea what you're talking about.

    Are you trying to create a mask for your laser? You can do it with blending modes. Check out the blending modes examples. editor.construct.net

    You probably don't need or want to use the canvas object at all.

  • 1. Without seeing what you want, it is hard to give you advice based on your description. In general though, beam type animations are done with particles, tiled backgrounds, and blending modes.

    2. If you want to animate a bow at runtime through code, you can use the drawing canvas plugin to draw the line, and animate it by numbers. This is significantly harder than doing it the traditional way though, which is to simply draw multiple frames for your bowstring animation.

    There might be some sort of distort effect that you might be able to utilize, but again probably more effort than its worth compared to just drawing out the frames.

  • You do not have permission to view this post

  • WebRTC is cross platform, so it technically should work across all devices. But, support for WebRTC itself isn't exactly universal... you'll have the best luck with the latest, updated browsers on their respective platforms.