Ashley's Recent Forum Activity

  • This is now supported in r401 with the new method createLoopingConditionContext(). You can use it like this (sample code for a 'TestLoop' condition that repeats a number of times):

    TestLoop(count)
    {
    	const loopCtx = this.runtime.sdk.createLoopingConditionContext();
    
    	for (let i = 0; i < count; ++i)
    	{
    		loopCtx.retrigger();
    
    		if (loopCtx.isStopped)
    			break;
    	}
    
    	loopCtx.release();
    }
    
  • If that post doesn't help, send your project to supportppk@construct.net and we'll take a look.

  • I've already been through it all - the documentation doesn't cover it at all and from what it says it should work, but it doesn't. It's a bug in Steam and you need to get through to their technical team to get them to fix it. I'd happily talk to anyone on the Steam technical team, but I haven't been able to get through to them myself, even by filing bugs and doing everything I can think of. If anyone has any contacts at Steam, please try to get them on it!

  • This is a normal feature of browsers: they restrict media playback until there is an interaction. It's covered in the Video plugin manual entry under "Playback restrictions".

  • It's not supported and has been removed entirely. I don't believe it actually had any legitimate use and the main impact it has was to cause a bunch of bugs in other areas.

    I'm afraid we will not support a feature just because it works around a bug in a graphics driver. In that case the graphics driver needs to be fixed, not Construct.

  • If you think you've run in to a problem with Construct please file an issue following all the guidelines, otherwise generally it's impossible to help.

  • I thought the render scale did already take in to account the layout scale? I'm still not sure what you're doing that requires the render scale and layout scale to be handled separately.

    If you really do need both modes though, I'd just say switch to DOM mode and add a CSS variable from JavaScript.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've added an extra parameter for the next release to "Pick Nth child" so you can choose whether the index is relative to all children (as it works now), or filtered to only the chosen object type (so it works like you want it to here). But I'd note this filtered mode actually works inconsistently to the other existing features - for example the 'Compare child count' condition and 'ChildCount' expression work with the list of all children. There is still no way to compare the child count of just one type of child, nor does there seem to be any good way to design an expression that returns the child count of just one given object type, as the current design of Construct does not allow an object type to be passed to an expression. So while the next beta allows you can pick from a filtered list of children of a given object type, there is no way to identify how many children there are of that type, nor is there any obvious way to design such a feature at the moment. I suppose if you have a fixed hierarchy setup, such as every hierarchy has both two arms and two legs, then picking Nth child with filter may be good enough, but usually I'm pretty reluctant to introduce feature inconsistencies like this - eventually someone else turns up and says "this mode is inconsistent/incomplete, it shouldn't be designed like that..." and we have a similar discussion like this again.

  • Ugh, another dependency nightmare. Most platforms actually have backwards compatibility that lasts for more than a couple of years - Google Play's aggressive deprecation of old SDKs is a real maintenance headache. If they supported things for longer then things like this would happen far less.

    The situation is Construct's mobile ad plugin relies on admob-plus-cordova. The latest stable version is v1.28.0 which uses com.google.android.gms:play-services-ads@20.6.0, the version Google Play now says has been sunset. We've been keeping an eye on updates to admob-plus-cordova for some time now, but the latest version is 2.0.0-alpha.18. The term "alpha" usually means "for early testing only and not ready for production use yet", so we've been waiting for a stable release before updating Construct. But Google Play have aggressively retired the old library version before this happened.

    I'm aware of community-admob-plus, but long experience has shown that switching between different libraries with different maintainers can cause its own headaches with compatibility, maintenance, etc. So in my view the ideal situation is a stable update of admob-plus-cordova to be released. However we are out of time really so we may have to make a pragmatic decision. I will investigate our options and hopefully have something lined up for the next beta release (usually released on a Tuesday, so July 23rd). Apologies for the inconvenience and hopefully with a little patience we'll have this sorted soon.

    Closing as duplicate of this thread.

  • It's not leg number 6, it's the child at index 6, which is of the leg object type.

    If that counted as leg 1, and there was also an arm 1, then the array of child instances would have two different instances at the same index, which doesn't make sense. Hierarchies have a single array of all children for each parent, not a separate array of children per child object type.

  • I'm not sure what you're trying to achieve - in CSS you can use --construct-scale, and in JavaScript it seems you can use the ILayer property renderScale, which works in both DOM and Worker mode. Doesn't that cover all cases?

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,380,206 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
  • x107
    Coach One of your tutorials has over 1,000 readers
  • x61
    Educator One of your tutorials has over 10,000 readers
  • x2
    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
  • x35
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs