randomly's Forum Posts

  • To be honest, I don't think, it's possible since you can't set collisions after exporting/while previewing.

    Collision polygons are set in a XML file after exporting and since you can't modify this, you can't change collision masks, sorry..

  • I created a barebone prototype for four-directional Reversi.

    You can download the .capx here.

    Please note:

    This is a prototype, this means that it will help you find a solution for your own problem, but it isn't a complete game.

    But obviously, you want to do that yourself anyways, right? Don't want to take all the fun from you ;)

  • At which point does the host leave?

    When you choose the image from the File Chooser or when you send the Data URL?

  • Use the Browser plugin and its Close action.

  • A simple workaround would be to use a very tiny Sprite that gets pinned to the Image Point (download link for behavior: here) and then check the line of sight to that Sprite.

  • Right, we will definitely need more details to help you.

    At least consider writing a whole sentence explaining

    • What you have
    • What you want
    • Where you struggle

    Do you have a country code and want the appropriate country string?

    Or do you need to get the country code of the person that runs your Construct 2 build?

  • Right, so here are several reasons why this doesn't work:

    • To use Sprite.SpriteExt.imageUrl (i.e. to make it return something), the Sprite actually has to contain something, meaning, you have to wait for On image URL loaded. After that, you can use it.
    • You can only load data URLs (the SpriteExt expression) to load Sprites from URL, not for Textboxes
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I answered to the original thread.

    Btw, for the future: no need to create a new thread for the same question.

    This doesn't incease the likelihood of an answer.

    • Import your image I assume you import the image with a file chooser object. If so, after importing, you will have the File URL available under the FileChooser.FileURLAt(index) expression. Use this in the Sprite action Load from Image URL to load the selected image to the Sprite.
    • Share the image The Sprite that you loaded the image to should have the behavior SpriteExt by

      rexrainbow or anything similar to access the Base64 DataURL of the image.

    With the Sprite expression Sprite.SpriteExt.imageUrl, you can now access the actual image.

    You can now send what this expression returns to your chatroom and anyone who receives it, can use the Sprite action Load from Image URL with the Base64 Data URL to load the Sprite with that image.

  • Can you please provide a .capx?

    • Save as -> Single File
    • Upload to your preferred Cloud Drive
    • Share the link with us

    This will help us fixing your issue.

  • There is a physics action Enable/Disable collision.

  • I would suggest starting a timer when the event On Drag & Drop start triggers, with a short duration of your preference. (Call it 'delay' if you want)

    Only trigger the Drag sound when the timer finishes.

    Stop the timer when a double-click has been triggered.

    This will avoid triggering the drag & drop event when there was a double-click X seconds after the On Drag & Drop start event has been triggered. (replace X by your delay)

    Might sound confusing, here is an example .capx that I made for you.

    Hope this helps.

  • By the way, what is the sprite hotspot ?

    A Sprite's hotspot is its origin.

    So when you use Sprite.X or Sprite.Y, C2 has to decide which of all the pixels on the Sprite represent its coordinates.

    That's what the hotspot/origin does.

    For Sprites, you can choose a hotspot everywhere on the Sprite (in the image editor).

    But for dynamic graphics, like Tiled Backgrounds, your selection is restricted and you can only choose from 9 fixed points (in the object properties).

  • With speed and width decreased to very low levels, vertically inverted and with a blue hue, it can be used as underwater caustics as well.

    Gigatron would really appreciate a download link!

  • Danwood since Chris hasn't been online for almost a month now, I'll just provide a link to the version that was in my effects folder:

    Download