Ashley's Recent Forum Activity

  • Got a .capx made from scratch showing the issue?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Oops, that's because in WebGL mode text draws on top of everything. Fixed for next build, but it just uses the opacity of the layer, remember the text is not really on that layer.

  • 47 is a great framerate for a phone! Remember they have really weak hardware to stay low-power and not cost much, so you should not expect to see the same performance as a desktop. Generally 30fps should be your target for mobile devices. iOS can generally get that for straightforward games.

    AppMobi won't get you any extra performance - see this post I made just now.

  • I've already looked in to DirectCanvas (the thing which speeds up HTML5 games), but coding for it is a nightmare. For some reason it isn't backwards compatible with existing code. Using it means a lot of work, possibly changing all rendering code, and it looks likely it'll break any third party plugins that draw. It's not enabled by default so using AppMobi right now doesn't get you any extra performance over PhoneGap. I tried to get them to explain why they did it like that but they just said it was the only possible way. It certainly doesn't have to be done like that on Android, so I'm not sure what's going on. Overall I was pretty disappointed, so we've been looking in to alternatives, but the state of mobile is tricky to say the least.

    It's possible some hacks may get better performance, but I was going to focus on Android 4 when it comes to my phone (due this month). Also, I think mobile performance is a problem time will fix, since I'm sure hardware-accelerated canvases and WebGL are on their way for mobiles and tablets - they're just a little behind the desktop tech. Being a small team we can't really afford to spend ages on hacks that might not work, but I think porting DirectCanvas to a PhoneGap plugin would be an interesting place to explore next.

    I tried a little side-project recently called WebGLGap which was a PhoneGap plugin that aimed to enable WebGL for Android. It worked, but was slower than Canvas 2D! I think it's Android's javascript engine is terribly slow at the moment and negates the performance benefit! So I hope that shows we're aware of the performance issue, and we are trying things, but it's a very difficult area - there are no easy fixes, it looks like all of the options will involve lots of work.

  • Now it thinks you've been continuously visiting the site for about 3 years... lol, funny bug, I'm sure when Tom sees this he'll be able to sort it out but I'm afraid you may lose some of those badges <img src="smileys/smiley17.gif" border="0" align="middle" />

  • joelsandberg - the 'black' option is opaque and moves the canvas down beneath it so it doesn't get overlapped.

  • From the manual:

    b]X

    Y

    Return the position of the mouse cursor in game co-ordinates. This is (0, 0) at the top left of the layout. It changes to reflect scrolling and scaling. However, if an individual layer has been scrolled, scaled or rotated, these expressions do not take that in to account - for that case, use the layer versions below.

    X("layer")

    Y("layer")

    Return the position of the mouse cursor in game co-ordinates, with scrolling, scaling and rotation taken in to account for the given layer. The layer can be identified either by a string of its name or its zero-based index (e.g. Mouse.X(0)).

    i.e. use Mouse.X("Layer 0") and Mouse.Y("Layer 0").

  • Thanks, think this is fixed for the next build now.

  • Oh right lol, well you can just edit it in to the exported index.html. It only affects Apple devices so I'm not sure about adding UI for it in Construct 2- we could end up with loads of random settings for different devices. I prefer to keep only settings that apply to all devices in the editor.

  • Ah, the spec for page visibility is still being worked on. I've fixed it for the next build: it will work in Chrome, but Firefox support isn't coming till Firefox 10, and IE support isn't coming till IE10. I wouldn't rely on those events for anything serious for the time being.

  • You must be pretty devoted because you've got 47 devotee badges :) cc Tom

  • smitchell - unfortunately not, we have to use the same code as everyone else, and Apple only provide those three options.

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,773,085 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