Ashley's Recent Forum Activity

  • Just add an event like

    Sprite X position > 10

    -> Set Sprite X position to 10

  • Thanks for the good report again, also fixed in next build!

  • We haven't implemented collision masks yet, sorry. It's on our todo list!

  • Thanks for the well-written report, fixed in the next build!

  • 3. As the gap between frames starts to get bigger, the delta between frames increases. Because I'm stepping the box2d world by this amount, it's stepping further in the physics world because the delta is larger.

    That sounds like the correct way to do it - you want to step the physics world further when more time has passed since the last tick. I guess there must be a bug in the way you handle ticks.

    I remember having a similar problem with the Physics behavior in Classic: the world needs to be ticked once per tick no matter how many instances there are. The solution is to keep a tick count in the behavior of the last tick number that the world was ticked. runtime.tickcount in C2 gives you the number of ticks that have passed so far, so your tick code per instance is something like:

    if (this.behavior.lastTicked < this.runtime.tickcount)

    {

    tickTheWorld(); // whatever function to advance the physics simulation

    this.behavior.lastTicked = this.runtime.tickcount;

    }

    This way no matter how many instances you have, the entire behavior is only advanced once per tick. I bet it speeds up when you add more instances because more than one instance is advancing the physics.

    ou should add an onDestroy callback sometime as well. It'd be a lot more easier. But thanks for that anyway.

    Isn't that exactly what addDestroyCallback is? Or do you need something else?

  • Use the project bar. Right click the layouts folder to add another layout, and double click a layout or event sheet to open it. You can have as many layouts and event sheets open at once as you like!

  • I think you've just reached 1000 reputation, which means you're trusted now :)

  • That's the one, it's in the default HTML for the next build! That'll fix it for anyone having problems right now, though.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ah, I think I've solved it (thanks to StackOverflow yet again!). The page is being rendered by IE9 in compatibility mode, which means "pretend to be an old browser", which means "pretend you don't have canvas". There's loads of factors to whether or not compatibility mode kicks in, but you can force it to use the correct mode with a HTML tag. Fixed in next build.

  • This is really odd, I'm stumped. I'll look in to it and see if I can find out any more information.

  • You do not have permission to view this post

  • This discussion is irrelevant - people are free to choose the browsers they want. IE9 has far and away the best canvas implementation - it draws with the best quality and is also the fastest. So I really like running Construct 2 games in IE9.

    IE9 supports canvas perfectly, there's no need at all for excanvas. The question is, why isn't it showing the canvas in the link? I guess something in the HTML is invalid and somehow broke it, but I can't find what.

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,770,358 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
  • x5
    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
  • x42
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs