newt's Recent Forum Activity

  • Take a look at the line of sight behavior.

  • I had a similar problem calling a function which sorts zOrder after an object was created. The function would sort everything except the created sprite, even though the function picked all. Function is top level event, bug or by design?

    On colission

    -> Create Sprite

    -> call function

    function picks all. sorts z-order.

    did not work. the newly created object is not sorted with the rest.

    On created (new top level event)

    -> call function

    function picks all. sorts z-order.

    did not work. the newly created object is not sorted with the rest.

    I can't get the created sprite to sort with the rest of the objects, even after calling a function.

    wait 0 works but creates ugly unsorted graphics glitch for a fraction of a secondbefore it's sorted correctly.

    Can you find the correct z before the creation and place it then?

  • Omg!

    Thanks

  • Well they are in the middle of making a new editor.

    Let's just hope the lessons learned from the previous ones guide them as well.

    Of course you have to take that with a grain of salt, as that means things like libraries, and etc which may have made things go quicker in development, may be off the table.

  • Sorry had it reversed.

    lerp(scrollx,player.X+cos(Player.8Direction.MovingAngle)*Player.8Direction.Speed,2*dt)

    lerp(scrolly,player.Y+sin(Player.8Direction.MovingAngle)*Player.8Direction.Speed,2*dt)

  • The trig would be

    lerp(scrollx,player.x+sin(player.angle)*speed,2*dt)

    And

    lerp(scrolly,player.y+cos(player.angle)*speed,2*dt)

  • lerp(scroll.x,Player.x+player.speed,2*dt)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The "high speed" part would be the most questionable.

  • int(random()), int(multiplayer.peercount) is googles.

    I would imagine it's already set to only deal with whole numbers.

    No such thing as a fraction of a peer, still, it's better to be safe than sorry.

  • Prolly want an int() in there.

  • Yeah, an array has that functionality built in, pop front, push back, etc.

    On object creation, set object.value to object.count-1, array push back value object.count-1

    Then you can do your picking... object variable =arrayat(0), do foo.

  • My point is I don't know why you need it to work that way when it already is that way, it's just not how you see it.

    You have to come up with some way to show what you want to happen, and why it needs to be done.

    Good luck.

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