oosyrag's Recent Forum Activity

  • Yes, it is possible to do this.

    You will need to build an input queue. I recommend using an array. Every input will be pushed (back) and stored in this array. Then when you hit go, each action will be executed based on the sequence present in the input queue array.

  • As I mentioned in my first post, to sync you must have the host move the object. The peer sends his inputs to the host, and the host will move the object for both the host and peers.

    Before attempting multiplayer, I always recommend going through and actually doing all four official multiplayer tutorials and truly understanding them - trying to figure it out on your own is mostly impossible.

    That said, I would not recommend trying to include multiplayer for a project that is to be turned in on Monday

  • Before testing it over a live connection, you should test locally on a single pc by opening multiple tabs/windows. Then you can confirm that it is not a latency issue.

    If it is still bouncing, like I said in my previous post, it is because you are trying moving the object on the peer side only and not the host.

    As for abandoning your project... I would guess that most people who try to use the multiplayer plugin are not properly prepared to do so. On the other hand, it is only by trying and sticking with it you can really understand how to use it, so it is up to you whether or not you are willing to spend the time and effort to learn.

  • On Up Pressed - Set GearVar to min(5,GearVar+1)

    On Down Pressed - Set GearVar to max(0,GearVar-1)

  • Syncing only happens one way - from the host to the peer. Peers do not send synced object positions to the host. That means when you move an object on the peer side only, it will get corrected based on the host's object state. A peer should send their input to the host, and the host should move the proper object based on the peer's input. This will in turn get synced back to the peer if your object is synced.

    If you do any moving on the peer side, this is called local input prediction. This is to show responsive input for the sake of the peer visually, while the peer client is waiting for confirmation from the host during the latency period. As long as they are close, you will not notice any bouncing around of position. The host remains authoritative regarding position and synced variables.

  • That is one third party program that can create JSON files.

    But I want to reiterate that you can do the same within Construct itself for free.

  • Like I said, the creator of the tutorial probably did it ahead of time.

    After setting up the array as you like, you can use the Array Download action to save as JSON, or use the asJSON expression to get a string with the contents of the array. You can then use the Array Load action to load that same string or file.

    To set up your array manually the first time, you'll have to either parse in a .csv spreadsheet, which I recall describing to you a while back, or you can set each array cell with the Array Set At actions in Construct.

  • As you described, the solution is to use nested loops and loopindex - For "x" from 1 to 29, then For "y" from 1 to 31 as a sub event. Your action would be to create a tile object at x, y where x is loopindex("x")*gridwidth and y is loopindex("y")*gridheight. You can add a constant value to each of these to offset the start position.

    In terms of optimization though... I personally would not create a potentially unused object for all the empty spaces and only create them when needed, in the right place.

    General words of wisdom - Never fear running into a dead end. In the process of doing so, you will learn exactly why and how a dead end can occur, and how to work around it. Also, there is no such thing as starting from scratch, as long as you have the experience of going through whatever you did previously. A program that takes you a month to write the first time, even if you were to lose everything, you could probably recreate in just a few days the second time you do so.

  • Don't try to read the JSON. JSON is a simply a data format for storing an array. You generally don't want/need to directly edit it, or to learn how to write JSON.

    Basically, you can set up an array in a program and save it as JSON, and load it again later back into your array.

    To generate the JSON, he probably prepared the array ahead of time and saved it as a file for easy use for his tutorial.

    Simply - An array can be saved as JSON, and when that same JSON is loaded you'll get the array that you saved. You don't need to understand the JSON format itself.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've heard bitballoon and weebly floated around. There are tons of options, just run a search for free web hosting on google.

  • More info from the creator of that video. http://blog.mimeoverse.com/post/5814677 ... d-minimize

oosyrag's avatar

oosyrag

Member since 20 Feb, 2013

Twitter
oosyrag has 38 followers

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies