nlacroixcforp's Recent Forum Activity

  • Hi,

    I am working on a project that is hosted on a repo. We are multiple people on the same project.

    I was wondering if files with the extension .xml.orig are required in the project.

    Also, do anyone knows what to type in .hgignore to ignore .uistate.xml files?

    Thanks alot,

    Nic L

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > I noticed that every layer has properties rendered in the debug console.

    >

    > Does these properties requires alot to calculate and would having lots of them slow down my game?

    >

    I use a lot of layers and it hasn't been a problem. Remember that debug is always slower than actually running the game--not all of that stuff you see in there is displayed constantly at runtime. I don't think I've gone past 30 layers, but the layers are just containers of objects. Nothing more. They're functionally identical to putting all of the objects on the same layer and possibly multiplying movement and positions to account for parallax values. Effects and Force Own Texture layers are the only instance where that's different because then that layer is rendered by itself and then placed with the other layers.

    So just try it out, run tests, and change things if it doesn't work.

    Thanks alot for your advices!

  • I noticed that every layer has properties rendered in the debug console.

    Does these properties requires alot to calculate and would having lots of them slow down my game?

  • Hi,

    I'm currently working on a project that would require a big number of layers.

    Is there an effect on performance if my layout has 'too' much layers (ex: 50)?

    Thanks in advance .

    Nic

  • *bump*

  • I've found C2 is quite good on the accessibility front already, so much so that with the help of a head tracker and a couple virtual keyboards, I can use everything in C2 without using my hands at all.

    I don't know what you mean by alt on img or button? I don't understand what you mean by your second question either. Access them how?

    What I meant by alt is alternative text so people that cannot see would be able to navigate my app. Support for a person not able to type on keyboard flew right over my head however.

    My second question is are we able to access the code of the elements present inside the canvas.

    For example, if you attribute an ID to a textbox in c2, it will show up in your code and you can call JS to add tags to it.

    Does this help?

  • Another question that I have:

    Is it possible to access the elements present inside the canvas?

    If so, I think my problem would be solved since I can add custom tags to those elements.

    (btw I did not want to create another post just for this question)

  • Hi,

    I was hoping to use Construct2 for an upcoming project for my work.

    A new law here forces every educational content to be accessibility friendly.

    In the software itself, there doesn't seem to be any options to make my project accessible (ex: alt on img or btn).

    What options do I have here? What can I do to allow accessibility in c2?

    I had an idea to use the execute JS to simulate an alt tag but I haven't researched it yet.

    Thanks alot for any advices,

    Nicolas Lacroix

  • Hi,

    For my c2 project I would like to create a pentagon graph to show the player's stats.

    Example: media.eventhubs.com/images/2015/12/24_attributecharts.jpg

    This would be builded using multiple coordinates and would be rendered through a custom plugin (or is there an easier way inside the software ?).

    Anyway I'm trying to render a shape but my code is executed and nothing is showing inside the canvas.

    Here's what I am trying :

    var context = document.getElementById('c2canvas').getContext('2d');

    context.beginPath();

    context.moveTo(387, 256);

    context.rect(188, 50, 200, 100);

    context.fillStyle = 'yellow';

    context.fill();

    context.lineWidth = 7;

    context.strokeStyle = 'black';

    context.stroke();

    I tried it inside instanceProto.draw = function(ctx) and inside a window.onload function.

    My question is why is the shape not rendering, and if it renders can I manipulate it inside c2?

    Thanks,

    Nic L

    Web programmer - CFORP

  • I found a alternative so this topic is now obsolete.

    How do I delete this forum post?

  • After further investigation, I found out that the issue was linked to the images not being able to load.

    I deleted the code that stops the script when finding the error, and the project loads without the images showing.

    The code I removed is :

    img_["cocoonLazyLoad"] = true;

    img_.onerror = function (e)

    {

    img_.c2error = true;

    anyImageHadError = true;

    if (console && console.error)

    console.error("Error loading image '" + img_.src + "': ", e);

    };

    The error on the console is: Error loading image 'Image source here'.

    It is important to note that the link to the image is good.

    Thanks alot for any help you can give me,

    Nicolas Lacroix,

    Web programmer

  • Problem Description

    Hi,

    I am currently exploring Construct 2 for integration in online classes that the company I work for are developping.

    Compatibility is one the most important thing that is required and so far almost everything works.

    Our only issue is when seeing the project on a iPad or Mac (safari) through the LMS that we use (d2l), the project simply wont load and is stuck in Construct2's loading page.

    The bug can be viewed here (http://test.reverbwebdesign.com/screen1.png).

    And here is the console on Safari (http://test.reverbwebdesign.com/screen2.png)

    However, the project works when viewed from my personal domain. So the problem comes from the LMS.

    Any idea on what can fix this?

    Thanks alot.

    The working project can be viewed on test.reverbwebdesign.com/, but the LMS version cannot be shared on this forum.

    Affected Browsers

      Chrome (ipad) Safari (Mac and iPad)

    Operating System and Service Pack

    Safari on Mac

    Browsers on iPad

    *Note: Strangely, safari 5 on windows 7 does work.

    Construct 2 Version ID

    227

nlacroixcforp's avatar

nlacroixcforp

Member since 25 Apr, 2016

None one is following nlacroixcforp yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies