newt's Recent Forum Activity

  • Well Firefox does have the 3d elements thing.

    Might be interesting to use that somehow.

  • But it has 0 height.

  • Edit.

    Never mind, Im sure you'll figure it out.

    I didn't have that much motivation to help in the first place, and even less now.

    My apologies.

  • Ehh its hard to tell whats going on with the custom movement mixed in.

    I haven't used it in C2 much, and the angle(0,0,x,y) just doesn't seem right.

    Surely you have a better way to get that angle.

    Anyway, good luck.

  • Technically you're correct.

    You used it twice.

  • Could be that angle() doesn't know which direction you are coming from ie angle(x1,y1,x2,y2) is different than angle(x2,y2,x1,y1).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Might want to rename those pics to something the browser can use.

    Leave the spaces out, or use a "_" for burning pt 1.PNG

    • Post link icon

    Oh yeah, forgot there was a code thingy, but is the store live now?

    I've been putting together a little platform version for the pendulum template I added.

    I'm just not sure how to distribute it.

  • > lerp(self.x,target.x,yourspeed*dt)

    > lerp(self.y,target.y,yourspeed*dt)

    >

    > Target, as well as yourspeed can be a variable.

    >

    This is a misuse of the lerp function, and should not be used (the ease in actually when you are using this is caused by the fact the distance between the self and the target is reduced, but the target will not be reached except if there are errors accumulating)

    If you want to go from a to b, either move with clamp(self.x+speedx, self.x, target.x) (depending on where is the target, you might want to adapt the formula) or using lerp(initialx, target.x, percentage) with percentage increasing from 0 to 1

    Its perfectly reasonable for something like this.

    If you need it to be to the pixel add a wait x seconds, put a set xy to target xy, and change the Boolean that gave it movement to false.

    Then again "to the pixel" isn't a very good idea either.

  • lerp(self.x,target.x,yourspeed*dt)

    lerp(self.y,target.y,yourspeed*dt)

    Target, as well as yourspeed can be a variable.

  • I hate it when some one makes a new thread in the "how do I" section, and then just make the title "How do I".

  • I guess the argument here is we have lerp, and it can be more customized.

    Of course the argument to that is you might not want the "ease in".

newt's avatar

newt

Member since 12 Nov, 2008

Twitter
newt has 27 followers

Trophy Case

  • 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
  • x3
    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