newt's Recent Forum Activity

  • The stick already provides acceleration, and deceleration based on input.

    You can simply set position:

    Sprite.X+(Gamepad.Axis(0, 0)*yourspeed)*dt

    Sprite.Y+(Gamepad.Axis(0, 1)*yourspeed)*dt

    You can tweak the speed part if you need to adjust acc/dec. Lerp works nice.

  • I came up with a simple way to make objects snap to other objects as if they were magnetified. I call it qarp snap, for less than obvious reasons.

    dropbox.com/s/1ag6ovf1dkx94rk/qarp%20snap.c3p

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think a lot of us will open another tab to do some quick testing. Its one great feature of using the browser, then opening a new project in an existing session is pretty convoluted.

  • Localstorage is asynchronous, you have to wait for the return.

    You can avoid this by putting the dictionary asjson into localstorage.

  • Just export the layers as frames. Trying to rasterize at runtime is not process cost effective, or performant, that's why it doesn't do that. If it was we sure as heck wouldn't be using svg for fame type animation anyway. We would use it to interpolate the splines for real animation.

  • Those events suppose that all mouse clicks should be independent of the situations.

    The mouse clicks should be dependent on the situations.

  • Circle line caps for poly's makes even more sense when you add this: construct3-21h2.ideas.aha.io/ideas/C321H2-I-76

  • If you build something worth putting on a console, you can put it on a console.

    That stuff works itself out. The only real issue is the current cost.

  • If you've made objects along the curve, iterate the instances add up the distances.

    repeat sprite count times distance(sprite(loopindex).x,sprite(loopindex).y,sprite(loopindex+1).x,sprite(loopindex+1).y)

    Divide.

  • Yep its a lerp with dots instead of segments.(note the ease in and out)

    I use distance() as an approximation since drawing pixels for every point along a curve is not performant, and connected segments are.

    Its not great for extreme curves, you could add the distance between the endpoints, and control points, but ehh.

  • You can run a loop and create your lines using tiled bg objects setting their positions, angles, a length using cubic.

    One line/ segment after the other.

    pigmalien.github.io/cubic

  • a simple idea is to first calculate total width of the curve then divide with number of steps or segments whatever we say, this is avg. for all those steps or if i predefined space i.e 20px on each then i have to increase steps as there will be shortage of steps on predefined space.

    You can have infinite points, but a quick way is to get the distance of the line, and divide that by a certain amount that will make up the segments of that curve.

    The divisor is what you would call the resolution. How smooth it is.

    You can use log or ^ if you think you will need to scale a lot.

newt's avatar

newt

Member since 12 Nov, 2008

Twitter
newt has 26 followers

Trophy Case

  • 16-Year Club
  • Entrepreneur Sold something in the asset store
  • 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
  • Popular Game One of your games has over 1,000 players
  • 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
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

31/44
How to earn trophies