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.

Measuring distance by looping/cycling through items with dict in list?

Home Forums Puzzles Measuring distance by looping/cycling through items with dict in list?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #70826
    c4cc
    Participant

    Imagine a video game where the playable character kills enemies. (with explosion effects)

    More specifically:
    I want specific clones of object removed when their assigned number falls below 0, especially within distance of another object. Is my dict for the clone list done correctly? Also, how do I measure distance between each individual clone and another object?

    Dict for enemy clones in list:
    obile46x1

    conditions for individual clones to be removed:
    obile46x1

    How do I get individual items ( enemy clones) in this list to be detected by a hit and then be destroyed, if their assigned number (HP) falls below 0?

    I know object distance puzzle doesn’t work on objects in lists, but surely I can use loop to cycle through lists in order to detect which enemy clone comes into contact with an object that can damage or destroy it, right?

    • This topic was modified 10 months ago by c4cc.
    #70866

    Hi c4cc,

    yes, looping through a list should work in this case!

    Chief 3D Verger | LinkedIn | Twitter

    #70868
    c4cc
    Participant

    Yet even though I successfully cloned the enemy as item in a list, I can’t remove them by having my attacks come into contact with them?

    #70922
    c4cc
    Participant

    Where did I go wrong in my initial post? Was it the “get” or “find” list puzzles?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.