alastair's Recent Forum Activity

  • Do all the objects have to be on the layout already for it to work? Can I create an object from a different layout?

  • Oh nice, it's good to finally see a Steam plugin for C2! I hope it won't be too much work to get it working for Mac too.

    Hopefully this will be ready soon, now that NW.js is looking decent.

  • Single/static images: use power-of-two size. Unless you change the setting "downscaling quality" to "high" which forces all exported images to be padded to a power-of-two size.

    Sprites with 2 or more frames: any size. Because they'll get turned into a power of 2 sheet.

    Tiled backgrounds: power-of-two size.

    Unfortunately we have to wait until WebGL 2.0 comes out before this silly power of 2 limitation is removed, however that may happen sometime this year.

    Source:

    Is the nwjs team even aware of the problem yet?

    Thanks for posting the issue again, it'll be good to keep track of the progress!

    fqbx31cv

  • Thanks R0J0hound and oosyrag, much appreciated!

    Here's a .capx of what R0J0hound did, I tried your code but your max/min thing is a bit weird to me since it seems to make the Amount value snap instantly to 0 and 1? However when I use clamp it works fine.

    Yeah oosyrag, that's a good idea! Since I know that sin and cos are like that, I tried using cosine for the scrolling amount and while it isn't perfect it seems to work pretty well, thanks!

    edit: didn't notice your edit, your zoom is very straight! That works well, thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Goal: I want to smoothly zoom in/out WHILE scrolling to a point point, WITHOUT it feeling wonky or swingy.

    What math formula can I use to achieve this?

    Problem: It feels like the camera is doing a curving swing rather than a straight zoom. I'm currently only using a basic Lerp formula for this.

    Capx, showing my attempt using Lerp:

    Visual illustration of how I would ideally like it to work, if I was good at maths:

    The thick red lines representing the final and starting zoom sizes.

    I'm hoping the next beta update will have an updated working one

  • Only during preview.

    I haven't found that to be true. Maybe I've been doing something incorrect somewhere? If that's actually suppose to be a feature, then I suppose I'll submit it as a bug report.

    Example (capx):

    As you can see, the power-of-two sized sprites move/look smoother and with less pixel jitter. Without being that square size, it seems as if it's doing "point" sampling rather than "linear"!

    Anyway, I hope WebGL 2 won't take too many years, so we can get this one improvement!

  • Yeah it's a shame it's inefficient, but non-power-of-two sprites aren't smooth or render as well as power-of-two when scaled/zoomed out. Sometimes quality matters!

alastair's avatar

alastair

Early Adopter

Member since 14 Jul, 2007

Twitter
alastair has 5 followers

Connect with alastair

Trophy Case

  • 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
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • x2
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x7
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

26/44
How to earn trophies