newt's Recent Forum Activity

  • I'll just leave this here.

  • Not sure what that could be, but you might as well stop looking at the code from C2's side its just one big json interpreted by the engine.

    C2 has a built in debugger, its actually a lot like Firebug, or Chromes.

    Eventing also can be a bit hard to get the hang of at first.

    You have to remember the events run in order top down every tick.

    The capx I made just shows how to deal with the server so that the server doesn't have to send every tick, just when something changes.

    Sending back to the server is a different story, its a little more complicated.

    Right now your options are to monitor the key presses, and send that when something changes, or monitor the objects x,y, speed, angle, etc and send that data... when something changes. Obviously the former being less exact.

    Or another option is to change the the movement, and set up a timer.

    Something like on this Boolean start a timer, while the timer is running move until the timer is over, and when it ends reset the Boolean.

    And yes the forum time out is a pain.

  • You will need to set up the server info in event 1.

    Thats just how it could be set up for the client side.

    Your end will require a fair bit more.

    Also that error notice should gone in the next release.

  • You could set up key values named for the different directions, and use a Boolean 0, or 1 to tell an object to stop or go.

    Heres an example.

    capx

  • tulamide

    No problem.

    Actually that kinda makes me want to make some sort of online theme editor.

  • Well if the return string was already formatted to "{"c2dictionary":true,"data":{}}" then when you received the message you could just load it into the dictionary object, and compare known keys, or do a for each key.

    I would assume there shouldn't be many issues reloading the dictionary that way.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You should get a color picker dialog to open up.

    If not then you've found a bug.

    Otherwise I'd suggest opening up one of the xml files and doing some changes there.

    Pretty sure it will except hex values.

  • Id say the biggest issue now is parsing the notification messages from servers.

    Most strings are in json key pair format, and C2's data objects use that, except they must all have the first key formatted to something they recognize.

  • R0J0hound

    I understand completely, especially after all that trouble I gave you with Firefox reading pixels wrong.

  • tulamide

    I wouldn't say you are being overly picky, Rgb should accept decimals, in fact the alpha channel goes from 0 to 1.

  • Actually I've been thinking about making a tile editor, and one thing that you could do is use Rojo's Canvas plug to convert the textures into a string using Canvas.imageUrl.

    Then you could save that data to an 3d array x, and y as position and a nested token@ for the image string and other data such as size and angle.

    So in theory you could save every last bit of data into an array, and load that.

    Just one file.

newt's avatar

newt

Member since 12 Nov, 2008

Twitter
newt has 27 followers

Trophy Case

  • 16-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • 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
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • 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

31/44
How to earn trophies