dop2000's Forum Posts

  • If it's not available in the list of functions to call, double-click the function name and make sure that it's not returning any value. Functions which return values can only be called from expressions.

  • From the release notes to r281:

    How do I retrieve the list of animations?

    Tagged:

  • Here is another example of using permutation tables I made for some other post:

    dropbox.com/s/qschy8ji3bfrvxx/PermutationRandomImages.c3p

  • It's in the event sheet. First you need to create an event and choose a condition (or conditions) for it. Then on the right side of the event you can add actions - click Add Action -> Enemy -> Simulate control

    You should probably start with the Guided Tour in Construct 3.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • CloudDealer Please see the link I posted, you need to properly load JSON into the array.

  • First, if you haven't done this yet, you need to load the array json file into the Items array object using AJAX. See the first two events in this template for an example: editor.construct.net

    Custom column and row names in the Array Editor are just for your convenience, you can't use these names to access data. So you will need to use numbers for x and y index - Items.at(0,4)

    If your table is big it will be difficult to remember what all those row numbers mean. You can create a bunch of constant variables and use them to make your code more readable:

    ITEMNAME_ROW=1
    HEALTH_ROW=2
    ARMOR_ROW=3
    EQUIP_ROW=4
    INSPECT_ROW=5
    
    Set Description to Item.at(0, INSPECT_ROW)
    
  • XHXIAIEIN These links are amazing, thank you! Yeah, that video tutorial definitely explained one of these algorithms, it doesn't matter which one now :)

  • Again, you need to post a screenshot of your code or your project file. It's a guessing game without it.

  • R0J0hound Thanks, your example is what I need! Although I have a feeling they used the Wave Function Collapse in that video... Maybe I'm wrong.

    oosyrag Interesting method, but a bit over complicated. And as I understand, it may create impossible configurations, which means it will need to be repeated until a good solution is found.

  • You should post your code.

    Normally if you need to process a 2D array you can do "Array For Each XY" loop, but I prefer using two nested System For loops. If your characters are on X axis in the array and their stats are on Y axis, it may look like this:

    System For "char" from 0 to array.width-1
     System For "stat" from 0 to array.height-1
     ... array Set At (x=loopindex("char"), y=loopindex("stat")) value int(random(1,10))
    
  • If you don't receive any response from AJAX, check error messages in browser console log (F12)

  • I don't understand, do you receive "1" from AJAX or not?

    Try changing the "last" variable to string type, or use int(AJAX.LastData) to convert "1" string to number.

    If you don't receive any response from AJAX, check error messages in browser console log (F12)

  • I almost never use Pin now, hierarchy works much better imo.

    im_pro_viz You need to add this object to a family. Then you can pick one instance of the family and one instance of the object and add them to the hierarchy.

  • I remember watching a simple youtube tutorial (not specific to Construct), explaining how to randomly generate dungeons like this, where there is a guaranteed route through all rooms from start to finish.

    Basically, the algorithm determined how many passages/doors will be in each room and where they will be located.

    Unfortunately, I lost that video.

    Does anyone have a link to that tutorial or know the algorithm to generate such levels?