oosyrag's Forum Posts

  • You'll need a way to keep track of which diamonds have been collected. You can do this by using an array.

    When a player collects a diamond, check the array to see if the diamond has been collected before. If it hasn't, award the diamond and update the array.

    The entire array can be saved to local storage and loaded upon starting the game again

  • Have you tried disabling worker mode? If you're using the rex plugins that were ported from C2, I believe they are not compatible with web workers, although I don't have any experience with the newgrounds plugins myself.

    If you're looking for help, you might consider specifying which plugin you're using exactly, and show what you did in the event sheet that is related to the error.

  • Yes. Nwjs is just a Chrome wrapper for your project in executable form. Basically you're bundling chrome with your game, and when you run it out opens a standalone version of chrome to load your game with, so it's basically no different than running it off a webpage.

    Yes that's what I mean by unified. The level of security pretty much depends entirely on how you design it. If the data files are located on the host computer, the peers would only be able to access them if you wanted them to be able to.

    The server... Is literally just like the computer you are using at home. You'll need an operating system like windows or linux, download chrome, and run it in a desktop environment. You can use VNC to control it remotely.

    If your server is command line only, you won't be able to run your project. You'll want one that can run (or virtualize) a windows or linux desktop. Technically MacOS would work too but... I don't think anyone does that.

  • In Epos 3.capx, the Enemy sprite object is in a container with eHB, ePos, and eShadow. This means that they all get created and destroyed and picked together. In Epos 1.capx, there is no container created.

  • You want to run a browser on your server. Like Chrome.

    Or you can export your game as an nwjs executable (which is a Chrome wrapper) and run that on your server.

    Normally a desktop type os on your server can be remotely controlled by VNC (I use TightVNC). You literally remote control the server computer to open a browser and go to the website where you exported game is hosted to run it. Or you use it to run the nwjs executable if you're on windows.

    On a side note, even if you're running a dedicated host, it is highly recommended to keep your host and peers versions unified as one project. It will work with separate files, but it can become quite a headache to maintain, even more so than a normal multiplayer project.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There is a "Go to layout" System action you can use to change layouts.

    In case that wasn't what you were asking, if you click your project name in the project bar, then check under properties there is a field that lets you select which layout you want to be loaded first.

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

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