dop2000's Forum Posts

  • 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

  • Yeah, it's the same for me. You can insert images if you edit your comment though. I logged a bug report:

    github.com/Scirra/Construct.net-website-bugs/issues/135

  • Your camera Moves To the same point on every tick. So on every tick both events 15 and 16 in scr_General are triggered, toggling your character's time scale between 0 and 1.

    I guess this messes up with Flash behavior and as a result, your character gets stuck in invisible state.

    You should only order your camera to move to a new position when it's different from its current position.

  • "Sort Z order" action is actually better for performance. But since I only sort two objects on every tick (not all trees in the forest), I guess my method should also be fine. Anyway, if you have too many objects and notice that z-sorting them is slowing the game down, try "Sort Z order" with a variable.

    "Wait 0" is simply to wait for all trees to be created, before initially sorting them.

  • Disable "Set angle" in event 16, and enable "Set angle=smooth" in behavior properties.

    Also, if you want more precise control, use "Set vector X/Y" actions (instead of "Simulate control")