Ashley's Recent Forum Activity

  • Closing, please follow the bug report guidelines.

  • Thanks, should be fixed in the next build. Note the reason IE11 doesn't play audio is because you didn't provide a .m4a version of the sound.

  • Thanks, good catch. Should be fixed in next beta.

  • I added some more details to the thread you linked to.

    Because this depends on the way the rendering pipeline works, it is probably pretty difficult to fix. However I'll leave the issue here open to indicate a known issue.

  • The reason this happens is to optimise rendering of shaders in some cases. If possible the object is simply drawn directly to the screen with the shader applied, which is the fastest way. However if you have other shaders or effects - including setting the opacity - then the shader doesn't know about them. In order to get that included in the visual appearance, it reverts to a full-chain rendering with an intermediate surface (a transparent render texture the size of the screen). The rendering process then goes like this:

    1. Render the object with its effect to the intermediate surface.

    2. Render the object from the intermediate surface to the screen using the opacity.

    This then makes sure the shader effect has the opacity applied. If there was a second shader, it would render to that screen with the second shader instead of opacity. If you have two shaders and opacity, it goes:

    1. Render the object with effect1 to surface1.

    2. Render the object from surface1 with effect2 to surface2.

    3. Render the object from surface2 to the screen with the opacity.

    This does mean that foreground texture co-ordinates work differently at different stages of the effect pipeline. The workaround is to work from the destStart and destEnd shader parameters, which give texture co-ordinates based on the background draw area (which is always a texture the size of the screen) rather than the foreground (which could be either an object texture or an intermediate screen-sized texture).

  • If it does not reproduce in preview mode this strongly suggests all of C2's code is correct. Perhaps there is a problem with the server. Closing as not a C2 bug.

  • NaN is usually the result of unrepresentable mathematical calculations, like sqrt(-1), division by zero, etc. So check your expressions are right.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • See "Expecting math calculations to be exact" in common mis-used events and gotchas.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • From the manual:

    [quote:1owyzcvb]Most browsers implement a maximum size of the data that can be stored with WebStorage - 5mb is a common limit. If you exceed the limit, the WebStorage's On quota exceeded trigger runs.

  • Closing, please follow the bug report guidelines when posting to the Bugs forum.

Ashley's avatar

Ashley

Online Now
Early Adopter

Member since 21 May, 2007
Last online 27 Oct, 2026

Twitter
Ashley has 1,834,390 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