dop2000's Forum Posts

  • Like I said, use "SpeechSynthesis -> Supports speech synthesis" condition to check if it's supported on your phone.

    Maybe the problem is with something else.

  • Sorry, but I still don't understand -

    A) Do you need to create a correct path? I.e. you need to generate a level which should definitely have a correct path from bottom to top.

    or

    B) Do you need to generate a random level, and then check if it contains a correct path?

    .

    If "A", then I would do something like this:

  • If you are using "if banner ad is not loaded -> create banner ad" on start of the layout (and not on every tick), I think it should be ok.

  • on start of layout -> if banner ad is not loaded -> create banner ad

    I think it should be ok. Banner ads are loaded quickly.

    With interstitial and video ads you should "create advert" and wait for it to load. Don't try to "create advert" multiple times, while it's already loading. And after showing the advert, you need to create it again. EDIT: Apparently, this is not correct, see comments below.

    Check out this post:

    construct.net/en/forum/construct-3/how-do-i-8/best-practice-show-rewarded-149674

  • So what exactly do you need - to detect if a randomly generated board has a valid path, or to ensure that randomly generated board will always contain a valid path?

    In the latter case, you can create the valid path in advance, and then every 2 seconds reveal one box of this path, plus 0-4 random boxes.

  • Another option is to use MoveTo behavior, it supports waypoints, so you can tell your character to move to points A, B, C and it will move along this path.

  • It may be not supported. Use "SpeechSynthesis -> Supports speech synthesis" condition to check.

  • Whats the difference of using the events "When ad ready / When ad is loaded"?

    The difference is that one is "On ad ready" and the other "Is ad loaded".

    Almost all Construct events starting with "On" are triggered events, which means they are triggered once when the event happens. Events starting with "Is" are conditions, which you can check at any time, any number of times, use in sub-events etc.

    .

    I may be wrong, but I believe for banner ads you should use "create advert" only once. And then in every layout you can check "Is banner loaded" and use "Show advert" if needed.

  • 5 is the Y-coordinate on the canvas in your expression.

    If you need to get the color from clicked position, use colourstrip.rgbaAt(Touch.X - colourstrip.X, Touch.Y - colourstrip.Y)

  • If the viewport is wider than RectangleFocusArea size, then simply set scroll X to the center of the viewport/layout. The view will be centered and only scroll vertically.

  • You need to enable Unbounded Scrolling on the layout. Also set scaling mode to Scale Outer. See this tutorial:

    construct.net/en/tutorials/supporting-multiple-screen-sizes-77

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Make regular backups of your work and everything will be fine!

  • Many ways to do this. You can change sprite size on every tick, for example:

    Set size to max(1, self.width-1) , max(1, self.height-1)

    or

    Set size to lerp(self.width, 1, dt) , lerp(self.height, 1, dt)

    Or use LiteTween plugin if you need nice easing effects.

  • Also, check out this demo:

    dropbox.com/s/ityy4s958d14x7k/PlatformScrollZones.c3p

  • There are lots of mistakes in those expressions. Fixed:

    X: clamp(Player.X, RectangleFocusArea.BBoxLeft+ViewportWidth("Player")/2, RectangleFocusArea.BBoxRight-ViewportWidth("Player")/2)

    Y: clamp(Player.Y, RectangleFocusArea.BBoxTop+ViewportHeight("Player")/2, RectangleFocusArea.BBoxBottom-ViewportHeight("Player")/2)

    Also, the size of RectangleFocusArea needs to be larger than the window (viewport) size, otherwise clamp will not work.