Ashley's Recent Forum Activity

  • FF doesn't have such a good garbage collector and seems to have slowdowns with audio so tends to be noticably more choppy than Chrome in my experience.

  • mercy, we'll document families when all the features are done - shouldn't be more than a couple of weeks.

  • Just use the layer name instead of the number, e.g. "HUD" instead of the number 4, then it will always use the same layer regardless of where it is.

  • Suggestion noted!

  • mrsponkie, have you tried using the Preview on LAN setting? I really don't know how else to fix this, it seems your computer does not want to let Construct 2 start a server.

  • This is a known and documented quirk of WebGL, it happens for technical reasons (WebGL cannot draw text so text is drawn in an overlay on top of everything). Closing as not a bug.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ha, well glad it's not a C2 bug :)

  • UncleJey, it would be helpful if you gave us the actual text in the error message. If it's Construct 2's error message and not a Java error message, if you read it carefully it should tell you what to do: visit java.com, find the 64-bit version of Java (by default it gives you the 32-bit one) and install that. It's not a bug, it's just the 64-bit Construct 2 will use 64-bit Java, and by default you only get 32-bit Java installed which is the wrong one.

  • Open the Windows 'Run' dialog, and type in 'chrome'. Does Chrome open? That's basically the command Construct 2 runs when you specifically choose Chrome in the preview browser. Also, what browser opens if you double-click a HTML file? That's also what Construct 2 simulates doing when choosing (default). So it sounds like your system is set up funny somehow.

  • If you want the raw math used to work it out, it's based off canvasToLayer at the bottom of preview.js in the install directory. Not very helpful I know if you're not familiar with coding but this is the actual implementation of how the scaling and translation is worked out.

    layerProto.canvasToLayer = function (ptx, pty, getx)
         {
              // Apply parallax
              var ox = (this.runtime.width / 2);
              var oy = (this.runtime.height / 2);
              var x = ((this.layout.scrollX - ox) * this.parallaxX) + ox;
              var y = ((this.layout.scrollY - oy) * this.parallaxY) + oy;
              
              // Move to top-left of visible area
              var invScale = 1 / this.getScale();
              x -= (this.runtime.width * invScale) / 2;
              y -= (this.runtime.height * invScale) / 2;
              
              x += ptx * invScale;
              y += pty * invScale;
              
              // Rotate about scroll center
              var a = this.getAngle();
              if (a !== 0)
              {
                   x -= this.layout.scrollX;
                   y -= this.layout.scrollY;
                   var cosa = Math.cos(a);
                   var sina = Math.sin(a);
                   var x_temp = (x * cosa) - (y * sina);
                   y = (y * cosa) + (x * sina);
                   x = x_temp;
                   x += this.layout.scrollX;
                   y += this.layout.scrollY;
              }
              
              // Return point in layer coords
              return getx ? x : y;
         };
  • If you do 'always - set web font...' the Text object will ignore the action with no performance impact if it is already using that web font. So you should be fine doing that.

  • Image points rotate with the object. So that does not sound like normal behavior. Did you add the image point to *all* animations and animation frames? Adding it to 1 frame only adds it to that 1 frame unless you right click and apply to whole animation, then also set it for other animations.

    Otherwise, sharing your .capx is always good to help us solve your problem.

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,830,746 followers

Connect with Ashley

Trophy Case

  • 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
  • Forum Mega Brain Made 20,000 posts in the forums
  • x126
    Coach One of your tutorials has over 1,000 readers
  • x74
    Educator One of your tutorials has over 10,000 readers
  • x6
    Teacher One of your tutorials has over 100,000 readers
  • Sensei One of your tutorials has over 1,000,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x44
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs