We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Loops – is “i” necessary or just a name for individual object in group?

Home Forums Puzzles Loops – is “i” necessary or just a name for individual object in group?

Viewing 10 posts - 31 through 40 (of 40 total)
  • Author
    Posts
  • #71624
    kdv
    Participant

    Once again: you are trying to read WRONG keys! “BattleStats” is not a key, it’s a value of the “i-Enemy” key.

    Man, read more about lists (arrays), dictionaries and especially about loops and local variables used inside loops. You just don’t understand what you are doing. It mostly looks like a set of random puzzles…

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #71625
    c4cc
    Participant

    Man, read more about lists (arrays), dictionaries and especially about loops and local variables used inside loops. You just don’t understand what you are doing. It mostly looks like a set of randomly taken puzzles…

    Believe me, for these puzzles I’ve tried to look it up many times, but the examples given weren’t enough. Will it help if I studied the Javascript for lists, dicts, loops and local variables inside loops?

    #71626
    kdv
    Participant

    Yes, it will help. Actually, all puzzles are just visualized JS functions.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #71679
    c4cc
    Participant

    Now I’m trying to parent an explosion to each clone that only shows when touched, yet only the original explosion is triggered.

    oile46x1

    Should I unparent the original explosion, clone it in a list and then assign them to a dict in a loop the same way we did to the clones? If so, how to assign individual clone explosions to clone enemy which only shows when touched?

    • This reply was modified 8 months ago by c4cc.
    #71753
    c4cc
    Participant

    I tried to clone the original explosion, and “list” the clones and then parent each clone explosion to each enemy clone. Yet it doesn’t work? Updates to my initial puzzles:

    image

    image

    image

    image

    image

    image

    How do I parent individual clone explosion to individual clone enemies, then make clone explosions only show when the enemy comes into contact with player?

    • This reply was modified 8 months ago by c4cc.
    • This reply was modified 8 months ago by c4cc.
    #71853
    c4cc
    Participant

    My 3rd attempt… still no change?

    image

    image

    Help?

    • This reply was modified 8 months ago by c4cc.
    #71891
    c4cc
    Participant

    4th attempt

    1

    #71892
    c4cc
    Participant

    5th attempt…

    1

    #71899
    kdv
    Participant

    https://v3d.net/trh

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #71927
    c4cc
    Participant

    https://v3d.net/trh

    Sorry for the late reply, I was fucking busy. This works, thanks for your answer. :good:

    • This reply was modified 7 months, 3 weeks ago by c4cc.
Viewing 10 posts - 31 through 40 (of 40 total)
  • You must be logged in to reply to this topic.