newt's Forum Posts

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

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • Tiled bg may not be able to show specific quadrants of a texture, but it can do something sprite can't, that being having different textures for different instances, loaded by url.

    Imho that seems like a better option since you are not limited to a mapped tiled texture.

  • Well we have the "Is in preview" condition.

    You could put the configurations in groups and enable/disable them based on that.

    Then just delete the unwanted group and is in preview condition when you

    export.

    Or does that even get exported Ashley?

  • tulamide

    I'm not real surprised browsers can be somewhat picky, and random goes all the way to the 14th space, which does seem a little excessive.

    Honestly you should just be happy you can get away with not having to add a str() on there as well. heh