AnD4D's Forum Posts

  • I have a database that has saved 350 drawings from Construct 2. I have the X Pos, the Y Pos and the colour.

    Example - 256,720,black

    However, for some reason I can't get my head around, in Construct 3 I can no longer simply put in a colour. Instead, I have to have 256,720,rbgex(0,0,0).

    "Ok, that's fine," I thought, "I'll just set up a few events that will change black to the rgba codes."

    So I create a string variable, then if it detects "black" in the 3rd array, it'll change it to the rbgex code.

    However, that doesn't work because the Drawing Canvas can only work with numbers. If I try to put my new colour variable into it, it won't work.

    So I change the variable into a number instead. However, now I can't have "rgbex" at the start! In fact, I can't even use the commas separating the numbers!

    In the end I went back over to the string variable and used a tokenat expression.

    So... just to confirm:

    Construct 3 = rgbEx(int(tokenat(Drawing.Colour,0,",")),int(tokenat(Drawing.Colour,1,",")),int(tokenat(Drawing.Colour,2,",")))

    Construct 2 = black

    Give me a break! Please, someone tell me there's an easier way! I now have to go in and set this up for every colour I decided to use. Luckily for me, I only used about 9 colours, but what would I do if I had used more? Is there a smarter way to do this?

    I love Construct 3, but I'm hating this one step forward, one step back feeling I'm getting.

  • Thanks haypers but don't worry about it. It's not possible to make an online multiplayer game with Construct 2 or 3 currently on XBOX or Microsoft Store.

  • So after 6 months of trying to get this to work, and a month of silence from this forum, I posted a bug report, then got a response the next day XD

    "UWP uses the (legacy) Microsoft Edge browser engine, which does not support WebRTC DataChannels, which is what the Multiplayer plugin uses. Therefore multiplayer isn't (and has never been) supported in UWP.

    The new Chromium-based Edge supports WebRTC as it inherits it from the Chromium engine used by Google Chrome. However it's not yet clear when or how this support will come to UWP."

    This means that it will not work, and will likely never work in the near or foreseeable future.

    Hope this message helps someone else in the future though! Don;t waste your time like I did! The future is very much single or local player :D

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • As nobody responded, I'm going to temporarily assume that nobody has tried to do this before :)

    C2 Version = https://1drv.ms/u/s!Am3CPIM7woZ9hr4IOlvQEvOTBAMVDA?e=9pd4p7

    C3 Version = https://1drv.ms/u/s!Am3CPIM7woZ9hr9R0pnyDWUGEMDZVg?e=nPXgd4

    If that is indeed the case, could some kind hearted person please try opening one of these versions, exporting it out as a Windows Store project, opening it in Visual Studio, and then successfully run it?

    By looking at the project you can see that all it's trying to do is connect to the Scirra multiplayer server. Testing the program within Construct, as well as running it as a desktop or html will connect immediately. However, as soon as I try it in Visual Studio, it fails to connect.

    I have been in contact with Microsoft about this for weeks, and they can't seem to find out what the problem might be. I have no idea whether it's an issue on their end, a setting I've failed to turn on on my end, or an error with Construct 2 and 3.

    Please could somebody help me out?

  • Thanks, Ashley!

    It's been sent :)

  • Unfortunately, looking back on the project, yesterday was a SUPER productive day.

    Let the tedious work begin again! :(

    EDIT - Looking at the error log I'm seeing this:

    "Exception opening: Error: behavior type name 'Tween' already in namespace"

    Not sure what that means...

    I have a family called "Tween", but I have that in the working version as well.

  • I've slowly and painfully been converting a huge Construct 2 project over to Construct 3.

    So far I've been doing it for about 2 weeks, for hours each day.

    Today, I load it up to have a message pop up saying "Failed to open project. Check it is a valid Construct 3 single-file project."

    Each time I save, it creates a backup, so at first I simply shrugged it off and went back to one of those.

    Unfortunately, the exact same thing happened... to the next 23 backups :(

    I've been using Beta 195, so yes, my fault for building a project using a beta. Honestly, in the project, all I'm doing is adding in a few things that are missing. I haven't added in any extra plugins recently. The only thing that comes to mind, looking at where the most recent working version is, is changing the pin behaviour to the new version.

    However, upon testing that by changing the code then saving a new version... it again loads.

    So all in all, I lost about a day's work, which kinda sucks, but at least I didn't lose everything.

    Is there a way I can force the project to open so I can at least see a message as to why it's failing to open?

    It doesn't make sense to me that there are 23 corrupted saves, yet zero warnings.

  • So I can set up multiple headers with multiple actions.

    Thanks again, Ashley!

  • Twitch are making some changes to the way their details are requested. In order to speed things up, I needed to generate a Client ID and a Bearer Token for my app, however, I've only ever needed to run the Bearer Token as my AJAX Header... until now, apparently.

    Starting on April 30, 2020, Helix will require the following:

    Use of OAuth across all endpoints, either via an app access token or user access token.

    The client ID provided in the corresponding header must match the client ID used to generate the OAuth token.

    At first I didn't think this was an issue. After all, I figured I'd just need to add in a line action calling a second header after the first is called. However, I then looked at the Scirra manual, and noticed the following:

    Set request header

    Set a HTTP header on the next AJAX request that is made. After the next AJAX request all the headers set with this action are cleared again, so it only takes effect once.

    Is this going to have a negative affect, or am I free to include as many headers as I'd like?

    Are the headers ONLY cleared once the request is made as the manual suggests, or if I call a second header, is the first replaced? If so, am I meant to call both headers in a single action?

    Thanks in advance!

  • Oh, sorry, I misunderstood you earlier - I thought you need to draw with square cap. I see you've already posted this idea, it seems like a simple change so hopefully will be implemented soon.

    Not to worry! Thanks for your help!

  • AnD4D It looks like in your C2 drawing example you used round cap?

    That's correct :) That's the thing I can't believe Construct 3 doesn't have. It only has a square or line cap. Neither of which looks very nice when used for drawing.

    I've put in a request for a round cap to be added, but I have no idea how long that's likely to take.

    Thanks for the plugin. I'll check it out. Also put in a request for us to be able to access these collision points without the need of a plugin. I'd rather run 8 checks per collision than 90,000.

  • > Currently trying to figure out how to get the Drawing Canvas to draw using a circle pen rather than a square. Who draws with a square pen???

    Have you tried setting "Line cap: square"? You can also draw on the canvas by pasting sprites and TiledBackground objects.

    I have indeed tried line cap: square :) It simply makes everything look like it's drawn without antialiasing XD

    It would be nice if we had a little more control, even in things such as brush hardness, etc.

    Hey R0J0hound good to see you again!

    That's actually a very good method, but might I ask how I access the object's collision polygon? At the moment, all I can think of is creating an image point at each collision point. I've tried looking in conditions for both the system compare and the object's conditions, but I don't see it anywhere.

  • Sorry wertt22 I'm afraid I don't understand what you mean. I'm getting very confused.

  • I'm with Dop2000 on this one. I don't believe having the object shoot the other one will help unless both shapes are perfect circles, no matter what random rotation I put in there.

    Chipmunk simply did this automatically.

    Sadly, I'm really starting to regret moving over to Construct 3... :(

    As brilliant as it is, Construct 2 just seems more capable.

    Currently trying to figure out how to get the Drawing Canvas to draw using a circle pen rather than a square. Who draws with a square pen???

  • I'm converting a Construct 2 project to a Construct 3 project, and I'm a little sad to say that in many regards I feel like I'm having to downgrade things.

    For example, in Construct 2 I was using the wonderful Chipmunk physics engine.

    I was able to have two objects collide, and create debris from that collision point. I was also able to find out how strong said collision was, and change the audio based on that.

    Does anyone know if such a thing is possible in Construct 3? And if not, might this be added in the future?