AaronSmithUK's Forum Posts

    IOS 10 now supports playing video inline, on iPhone. The changes also incorporate auto-playing video without user interaction (muted videos only).

    https://webkit.org/blog/6784/new-video- ... s-for-ios/

    Plus, there is support for painting a video onto canvas, so potentially allowing background video in construct 2 on IOS!

    "These new policies mean that more advanced uses of the <video> element are now possible, such as painting a playing <video> to a <canvas> without taking that <video> into fullscreen mode."

    Someones cooked up a polyfill for IOS 8 and 9 as well:

    https://github.com/bfred-it/iphone-inline-video

  • I'd happily use a construct 2 amazon plugin, if such a thing exists! Do you know of one?

  • Hi

    I've managed to get IAP working for my apps for the Windows Store (Construct 2 native IAP plugin), Google Play and IOS (Cranberry IAP plugin) but I can't get either plugin working on the Amazon App store (as a compiled apk file via Cordova).

    Basically, I request the store listing, but nothing ever comes back. The exact same apk works with the Google Play store but on Amazon Apps, no response. I've tested using both native IAP and cranberry.

    Native IAP never responds after requesting store listing.

    Cranberry responds with "failed to list store".

    Does the native IAP plugin support Amazon Apps, or is it only for HTML5 hosted apps? I can't find a working example anywhere.

    Has anyone achieved this??

    Just to be clear this is in the context of a project exported as Cordova app, compiled as apk (Android), and uploaded to the Amazon App marketplace (for distribution on Kindle Fire tablets).

    Hope someone out there can help!

    Aaron

  • In answer to your question about the location of WindowsStoreProxy.xml in Windows 10 apps - it is now dynamically built and available in the packages path.

    C:\Users\<username>\AppData\Local\Packages\<app package folder>\LocalState\Microsoft\Windows Store\ApiData\WindowsStoreProxy.xml

    After export make sure you build/run visual studio at least once to so the <app package folder> is created. Browse in file explorer to C:\Users\<username>\AppData\Local\Packages\, sort by "Date created" and there it is!

    You can then copy that file to the root of your Windows 10 project and it's editable from there.

    https://msdn.microsoft.com/en-gb/window ... -purchases

    Hope this helps!

  • Thanks, always good to have options!

  • I found another way to do it. I used the paster plugin instead.

    https://www.scirra.com/forum/plugin-paster_t88750

    Paster allows you to create instances of an object with unique image sources.

    Big thanks to R0J0hound!

  • I've now realised that this behaviour is by design. The sprite object instances all share the same image source, so if I change it, it changes on all instances.

    So my question is now: how do I load different images into an undetermined number of sprite object instances? Or is this the wrong approach?

  • I've created a simple gallery that loads an image into instances of an image placeholder sprite on creation of the sprite.

    I use a random image url with a cache breaking value on the end to ensure a fresh image every time.

    Problem is that when the image placeholder sprite is created, the call to load the image from the url reloads ALL the placeholders rather than just the one just created.

    Here's a demo capx:

    https://drive.google.com/file/d/0BxrnHlX5UrYYTk5yRXJNU2V3RTg/view?usp=sharing

    This might be a bug, but it's more likely me doing it wrong.

    Please someone point me in the right direction!

  • Great, that's much better. Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi

    I'm new to Construct 2 but really loving it!

    I'm porting in a simple game made with html5 dom that uses drop shadow on png images.

    I need the shadow to be a simple outline shadow on the sprite/png that observes the edge of the image. This is easily done in css with:

    .shadowfilter {
    	filter: drop-shadow(12px 12px 7px rgba(0,0,0,0.5));
    }
    [/code:2kv8mc9k]
    
    An example can be seen here:
    [url]http://thenewcode.com/598/boxshadow-property-vs-dropshadow-filter-a-complete-comparison[/url]
    
    I've tried the ShadowLight object with the ShadowCaster behavior but it's overkill - the shadow does not need to move with lighting, and it doesn't render correctly on my sprite (e.g. the edges are wrong). 
    
    Is there a simple way to add static filter shadows to a sprite, or am I doing it wrong??