dop2000's Forum Posts

  • You need to use "Regenerate obstacle map" action. On a big map this can cause lags, so when possible try to only regenerate a small region. And after that, you need to refresh path for already moving units.

    "Regenerate" is completed on next tick, so your event may look like this:

    Drag&Drop On Wall dropped	
     -> Unit regenerate region around Wall
     -> Wait 0
    	Unit is moving along path
    	 -> Unit stop
    	 -> Unit find path to...
    
  • I think what happens is you make player's time scale=1, and everything else 0.15, so your player is not slowed down.

    You need to use "System restore object time scale" action, instead of "Set time scale=1"

  • Need more information. Do you need a local or global leaderboard? If global - what platform are you making the game for? (web, desktop, Facebook, Android, iOS etc.)

  • Everywhere you have tokenat(tokenat(AJAX.LastData, i, "|"),1, ";") - wrap it in trim():

    trim(tokenat(tokenat(AJAX.LastData, i, "|"),1, ";"))

  • Array Push Back value x1 on X axis
    Array set value at (self.width-1, 1) to y1
    Array set value at (self.width-1, 2) to x2
    Array set value at (self.width-1, 3) to y2
    

    The array will grow on X axis (width), its height=4, depth=1.

    When you use "Pop on X axis", it will remove the entire row.

  • This is not a good solution, better use trim.

  • According to the documentation, "smart size" is the best option for banners.

    But it means that the banner height can be either 32, 50 or 90 pixels. How do I know the real banner height, to make sure that objects on my layout don't overlap with the banner? Or should I always allocate 90px?

    .

    Related question, that may be a bug - why after I hide a banner, I can't show it again? I use "Show the current banner advert" action, but nothing happens.

    Tagged:

  • Check the official template for Blend Modes.

    Both objects (circle and image1) need to be on the same layer and you need to set "Force own texture=yes" on the layer. Image2 (the one you want to open) should be on another layer below.

  • You need to use blend modes. Destination Out, for example. You can simply create a circle sprite under the mouse cursor on every tick, which will "erase" the top picture, revealing the picture under it.

    Or you can draw this circle on a Drawing Canvas, the principle is the same.

  • When you parse the text file, your names contain a line break in the beginning. If you make the text objects much bigger (taller), you will see it.

    Add trim() expression - trim(tokenat(tokenat(AJAX.LastData, i, "|"),1, ";"))

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • brunopalermo Actually, with multidimensional arrays in Construct array.at(X) is equivalent to array.at(X,0) or array.at(X,0,0)

    MarkoMx Run the game in Debug Mode, select your text objects on the left, check if they contain text or not.

  • You can rotate the platform either with actions (like "Set angle") or with Tween behavior, when player is overlapping it on one of the sides.

    Or you can try Physics - only on the platform, not on the player. Create a limited revolute joint and apply force to one of the sides.

  • Maybe there is another event that moves the camera?

    Try debugging - add Browser object and "Browser Log" actions to your events, then when previewing the game press F12 and open console tab. You will be able to see in the console which events are triggered and when.

  • Addons is the most tricky part. Some popular addons have been ported for C3 (LiteTween, MoveTo, Pin+ etc.) For others you may need to find an alternative, for example Canvas/Paster can be replaced with the official DrawingCanvas, but of course you'll need to rewrite some events.

    Here are some useful links:

    construct.net/en/make-games/addons

    construct.net/en/forum/construct-3/plugin-sdk-10/construct-3-runtime-a-few-cons-137539

    github.com/erenertugrul/construct-plugins