BigBuckBunny's Forum Posts

  • Can you share your project so that we can take a look? You can remove unecessary content while preserving the issue if you don't want to share the whole game.

  • You can filter out layers that shouldn't be affected by zoom by setting the scale rate of the layer with the letterbox effect to 0%. You can find this option by clicking on your layer. scale rate is on the layer properties panel.

  • This is so coool! Thank you for your work!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you for testing! I checked again and noticed that my key alias was different from the one I used when generating the key. Now, by using the same alias, everything works correctly. :)

  • For some reason every time I try to export my game as a signed Android app bundle, the export fails with no error displayed. No errors in the browser console either. I tried both with my main project and a very small one, with no success. Non signed exports work though.

    Is anyone else experiencing the same issue?

    Tagged:

  • First of all, you should have a way to store the information about the neighbours of each sprite onto the sprite itself. For example, each sprite should have 4 booleans (TopLeft, TopRight, BottomLeft, BottomRight), set to true if a sprite is attached at that position, and set to false otherwise.

    Then you coud implement some sort of flood fill algorithm that, starting from the center of the shape, navigates to all sprites in a predefined and fixed order. Each time you visit a sprite, you store its neighbours on some sort of object (even a string). You then have a "code" that represents the shape you have on screen.

    For example, for your first shape, you start from the top-left sprite and proceed in clockwise order. The first sprite has only a neighbour on BottomRight, so you store something like "0001". The following sprite has only a neighbout on BottomLeft, so you store "0010" and so on. The shape will then have code "0001 0010 1000 0100"

    You could then store the codes for your 3 shapes, and check if the code of the player's shape matches one of those.

    This is only a rough idea, but maybe it can help you.

  • If you want your shadows to stop overlapping so that the whole shadow has the same color, you could do something like this: instead of having the ShadowCaster behaviour on your game objects, have it on some invisible placeholder that you place beneath your sprites. These placeholders must all be on the same layer. Set the ShadowLight opacity to 100%, and set the layer opacity where you put your placeholders to something like 50%. This way the shadows will be rendered together as a whole image with its own opacity.

  • If you add a On touched object condition, you can select the touch type (start or end) when inserting the condition.

    Make sure you are using "On touched object", and not other conditions like "On tap object"

    Here's the manual link about it.

  • That's called "color bleeding". Ashley made a good post about it, check it out :)

  • Hi all!

    I'm trying to add a script dependency to my addon. I'm using the addon sdk1 for now.

    Following the manual, these are the steps I took:

    1. Added the dependency script in \c3runtime folder
    2. Specified the dependency in the behavior info using this._info.AddFileDependency
    3. Specified the script file in "file-list" inside addon.json

    If I try to call a function from the script, I get an error saying that the function is not defined. However, a console.log inside the script shows up on the browser console, meaning that the script at least is loaded.

    Is there anything I'm doing wrong? (I'm using developer mode btw)

    This is how I add the dependency in behavior.js

    this._info.AddFileDependency(
     {
     filename: "c3runtime/voronoi.js",
     type: "inline-script"
     });
    

    In "file-list" I added "c3runtime/voronoi.js"

    And this is the script i'm tring to use (calling new Voronoi()):

  • Local storage has a maximum size limit of 5 MB, which is far too small for storing videos. You could try storing your videos on a server and load them from there.

  • You can add background-image: url('IMAGE URL HERE'); instead of background-color to have an image instead of a solid color as background.

  • I played around a bit with this. You can get the tag position and size with this code:

    Just make sure that there are no problems related to viewport / scaling with your project settings.

    Project link: dropbox.com/scl/fi/rvxk5xstleim7wrtdzsf8/Tag-position-in-html.c3p

  • Can you give me an example of your text?

  • For your first question, make sure to tick "Allow context menu" in the HTML object menu.

    For your second question, use Text.TagX(tag, index) Text.TagY(tag, index)