Obi554's Recent Forum Activity

  • Thanks. Works perfectly :)

  • Hi, is it possible to do the following with array numbers?

    on button press : subtract 5 from cell x,y

    I thought you could manipulate array cells just like global variables, but there doesn't seem to be an event pointer for it/online manual.

    Thanks.

  • I'm getting this with one of my new layouts. All other layouts are loading fine in the preview.

    Any idea why?

    Many thanks.

  • Hi,

    I'm trying to obtain an x value for an expression which goes as follows:

    Sample array:

    dogs 1 2 3

    rabbits 2 2 3

    Expression:

    On listbox entry 'rabbits total' selection:

    >set text to: the array index of "rabbits" at x=2

    an expression for this would help a lot as i'll be adding and removing rows as the game progresses and rows will be moving up and down, so using an expression which searches for the "rabbits" entry instead of pointing to a specific xy position would be amazing.

    Thanks for any help.

  • Ok thanks.

  • Cheers for this Dop, i'll take a look at it this week :)

    Btw - do you know if it's possible to access the 'description (optional)' element of a Global Variable using the events?

    For example, could I use the description inside a global variable inside a text object instead of adding the description manually to the text object separately?

    e.g.

    On button press

    >text object - show text - global_variable1 description

    Thanks for any help.

  • Hello,

    I know this may seem like a simple question, but is it possible for someone to walk me through creating a JSON file using Excel and then getting it imported into Construct 3 into specifically a Dictionary OR Array format?

    I want to save time and not have to go through mistakes and errors. So I'd be very grateful for this.

    Many thanks.

  • SOLVED:

    The layout wasn't assigned to an event sheet.

  • Hi,

    it's supposed to request array.json.

    I know my events are accurate because it works fine in other test projects I've setup but for some reason not in my main project.

    Is there anything specific that can stop it from working normally.

    If the project file is corrupted I may have to start again whih I dont want to do.

  • Hi.

    So I started a main project a few weeks ago and I'm stuck because my arrays are not loading into the ajax plugin.

    It's a really easy task to setup which takes less than a few minutes - thanks to the help of members of this forum who helped me a few months back showing me how to do it.

    On start layout - ajax - load array.json

    On tag complete - array - load ajax.lastdata

    Whenever I load the debug preview the ajax is showing to have no data. And my 2 arrays are showing as width 10 which is inacurrate, as well as no data.

    I'm not sure what to do. I've tried moving the events to the top of the events sheet, i've deleted the ajax and arrays and started again. It's just not working

    I know there is nothing wrong withvmy events because I have started 3 new projects and made simple arrays and they are working fine in the preview.

    Could my main project be corrupted or is there somethinf I'm missing?

    Have I disabled somethinf that I shouldn't have?

    It's really frustrating because I can't move on with my project as the array function is so useful in so many ways for storing data although it is a steep learning curve for me.

    Just to note. I have 2 layouts and 1 event sheet. I don't think having a second layout would cause the events to not work properly.

    Thank you for any help :-)

  • Thanks :->

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here's a screenshot of the array + the events. If populating a list box with array / dictionary text is gonna be difficult I'm happy to try a simpler method.

Obi554's avatar

Obi554

Member since 1 Oct, 2017

None one is following Obi554 yet!

Trophy Case

  • 7-Year Club

Progress

7/44
How to earn trophies