- This topic has 39 replies, 2 voices, and was last updated 7 months, 3 weeks ago by c4cc.
-
AuthorPosts
-
2024-03-15 at 5:04 pm #71624kdvParticipant
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.
2024-03-15 at 5:56 pm #71625c4ccParticipantMan, 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?
2024-03-15 at 6:04 pm #71626kdvParticipantYes, 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.
2024-03-18 at 9:51 am #71679c4ccParticipantNow I’m trying to parent an explosion to each clone that only shows when touched, yet only the original explosion is triggered.
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.
2024-03-19 at 9:12 am #71753c4ccParticipantI 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:
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?
2024-03-21 at 3:48 am #71853c4ccParticipant2024-03-22 at 3:06 am #71891c4ccParticipant2024-03-22 at 3:08 am #71892c4ccParticipant2024-03-22 at 10:57 am #71899kdvParticipantPuzzles 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.
2024-03-25 at 7:53 am #71927 -
AuthorPosts
- You must be logged in to reply to this topic.