morvy666's Recent Forum Activity

  • The "stop loop" action doesn't work for loops like "Dictionary For Each Key" or "Array for each XYZ". It only works for System loops.

    What it does in your case is actually stopping the parent loop - "System for each MapLayer".

    See this post:

    https://github.com/Scirra/Construct-bugs/issues/4823

    If you want to stop the "Tilesets For each key" loop, use a variable.

    > TileSets For each key
    Compare varStopLoop=0
    
    .. TileSets current value<mapTileid : Set varStopLoop to 1
    

    Thank you man.

  • Role:

    The mapLayer array and tileSets dictionary are feeded when some json files is loaded with AJAX synchronously, but i am controlling this using a variable called loadingMapCycle. After AJAX load all the files, the variable loadingMapCycle will be changed to 1.

    When i try to use getTileMapByTileId function in the mapLayer array loop, it will be called once.

    The code with commented function:

    And the output in console log is:

    mapLayer qtt 4

    tileMapLayer groundLevel

    tileMapLayer belowLevel

    tileMapLayer sameLevel

    tileMapLayer topLevel

    When i active the followed selected line, it will print in the loop only one time

    the log:

    mapLayer qtt 4

    tileMapLayer groundLevel

    This is my function:

    What should i need to do to this functions work in this loop?

    Tagged:

  • Oh god, i created the btnText object in Layer 0, and the gray retangle was created in the Layer 1 hehe, all works good.

  • Hi Everyone,

    I set the blend mode only in the green box to test in the editor (1st image) and apparently it was working perfectly. I made a code to generate a list (2nd image), and when the list is created, the blend mode Source Atop doesnt work (3rd image). I run in debug mode and the z-order of the gray rectangle who i created in the code is locked at 0 (3rd image). I've tried to use the same gray rectangle created in the editor, and the same happen. I already tried to set the gray rectangle to botton and the same is happen (3rd image), I've tried to set the green rectangle at the top, and, the same is happen, why ?

  • I put the "for each array x element" in the same layer of "direcao" variable comparison and it work.

    Thank you again for your answer.

  • Oh, thank you for your answer, but i prefer to create a new array, who work with this numbers, i prefer use that:

  • Look my code:

    When I do this, the "pre_effect" objects do not set the new position using "for each object" in this function.

    I tried defining using another function by forcing the "for each object" out of the old function, and it doesn't work.

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I found the bug!

    The creature spawner is set at the start of layout and DB(array) not, i just put the db(array) on start of layout and it works.

  • Another debug way

    its work

  • I changed the code with deBUG

    Here i constructed the arrays, each array object with your own player_id variable

    Here i Call the function

    The Function try destroy the object, a debug way

    this image shows the function that can not find the object array comparing the object variable with param(1)

    (the array object was not destoyed)

  • Hi everyone, i am trying to call a function with these params, but its not work, it return 0

    i have already write the code about 3 times, and i still have this problem.

    Aparently the system can not find the event with the Param(1).

    Tagged:

  • hi everyone,

    Can i see local variables in the debugger test?

    thanks.

morvy666's avatar

morvy666

Member since 3 Mar, 2014

None one is following morvy666 yet!

Trophy Case

  • 10-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies