WixeyPixels's Forum Posts

  • Hi oosyrag,

    Many thanks for taking the time to explain this, it's been a big help. Just one question - in event 7, why do I need to set the Used variable to True for both the Item family and the Item object? I accidentally deleted one of the "Set Used to True" actions afterwards and found it still worked.

  • Hi oosyrag,

    Many thanks for all your help. The project's still too early in development for me to have a really clear idea about the interface, but once I've given it more thought I'll post a sample image and description when I have time.

    If I decide to stick with drag and drop I doubt I'll use more than three items as I could see it was starting to get overly complex.

    In the meantime, here's my attempt at adding a third item. I've added the "For each item family" but still can't get them to combine.

    According to debug mode the "ID2Valid" and "ID3Valid" variables don't always switch to "True" when overlapping the other items.

    drive.google.com/file/d/12kvwVJnoTaVl5K5gLJEllirUFHkhvmPy/view

  • Hi oosyrag,

    I reworked the file earlier today and the text is displaying now. I'm still not sure what I changed. I wanted to ask if there's a way to add a third item into the combining "recipes", for example, combine three items instead of two? I've tried adding an extra global variable and matching events but it prevents all items being combined. The code's currently nearly identical to Laura_D's original: https://drive.google.com/file/d/1ybqEwpb8Bc9oyXQI6gTE43jzFVp43tXw/view?usp=sharing

  • Could anyone give a brief explanation as to how modify this to make a line of text appear with "You made a [insert item name here]" when the two items are combined?

    I've tried adding a text object and an "itemDescription" line in the json file, then using "set text to JSON.Get(".itemDescription") but it always displays "0" instead of the text. I'm still very new to JSON so have probably missed out a lot of steps.

  • Many thanks Laura_D, this looks really helpful. :)

  • Thanks, oosyrag. The game's still very early in development but I was thinking along the lines of dragging and dropping items to combine them.

  • Hi,

    I'm trying to implement a feature where the player selects two (or possibly more) items from an inventory and combines them to make a new item, depending on which items were combined. I want to use arrays (unless there's an easier method), but can't work out what events I need to do this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    Could someone please explain what to put in the "Key alias" field when compiling a signed APK for Android? I've read the "Building a signed apk for Android in Construct 3" tutorial but am still a bit confused. Thanks in advance.

  • Many thanks, Cascade Games and Simple Games,

    I've changed it to to "Show:true" and it's working now. I forgot to mention my Admob account was new and unverified at the time, which might have stopped the ads from displaying.

  • Hi,

    I've been trying to test whether Admob banner ads are working via testing my app on an android device. No ads are displaying so it looks as though they aren't loading. So far I've tried exporting unsigned release APK, which gives me the error message "App not installed" when I try to load and open it on my phone, and debug APK, which works but doesn't display ads.

    This is the code I've been using:

    I'm new to this so there could be any number of things I'm doing wrong. Any advice would be really appreciated.

    Tagged:

  • Hi,

    I'm using the below layout and have an invisible camera sprite following the main character sprite using lerp. How do I get a sprite on a separate layer to always appear in the centre of the screen no matter where the main character is positioned?

    The closest I've got is by using scroll.x and scroll.y but occasionally the sprite appears slightly off-centre.

  • Thanks, Noah1.

  • Hi,

    I have a sprite set to "set angle towards Mouse.X and Mouse.Y. How do I get the sprite to rotate within a range of degrees when following the mouse, for example 0 to 180 degrees, instead of the current 360?

  • Thanks, Tomycase.

    I've changed it to "Pick Random Instance" and it works, but now each item has the same animation when created. The "Set Animation" action seems to have stopped working.

  • Hi,

    Sorry about that. I've recently made a little progress by making a few changes to this tutorial: construct.net/en/tutorials/creating-inventory-arrays-475

    I'm now able to get items stored in the array to spawn when the box object is touched, but can only get all stored items to spawn at once. I'm currently using "for each X element". What should I change this to to make only one object spawn per touch?