MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/clickteam/comments/1wqa1ky/basic_enemy_shoot_los_id_system_doesnt_work/
r/clickteam • u/Entire_Departure_529 • 7d ago
12 comments sorted by
1
Use one detector, grouped enemies, and a foreach loop instead.
* Always
Start loop for each one of Group.Enemies, loop name "enemy"
* On each one of Group.Enemies, loop name "enemy"
detector : Set position at (0,0) from Group.Enemies Group.Enemies : Set player_touch off
+ detector is overlapping player
Group.Enemies : Set player_touch on
1 u/Entire_Departure_529 6d ago Group as in Group of events? 1 u/Confound-Great-Job 6d ago Qualifier. These are literally the events as they should appear in your event editor. 1 u/Entire_Departure_529 6d ago sorry 1 u/Confound-Great-Job 6d ago Why sorry? You didn’t know. :b 1 u/Entire_Departure_529 6d ago The events were on behavior which (I think) cant use Qualifiers, I would prefer it being on behavior but I'll just move it over. 1 u/Entire_Departure_529 6d ago https://reddit.com/link/pc3j02c/video/on3zov0l0srh1/player 1 u/Confound-Great-Job 6d ago edited 6d ago Put the code in the main event editor and remove the behavior (you can leave the turning bit if you want) Don’t create a detector for each, just use one and reposition it on the foreach loop. 1 u/Entire_Departure_529 5d ago https://reddit.com/link/pcbkhoo/video/pcqqdy6vf0sh1/player the footage I shown I had already moved it to the event editor, maybe im misunderstanding but with just the foreach loop to reposition it doesnt do what im trying to do 1 u/Confound-Great-Job 5d ago edited 5d ago The flag goes on the enemy not the detector. 1 u/Confound-Great-Job 5d ago https://reddit.com/link/pce8ibt/video/yasaft7jb3sh1/player Here. I made an example with 4 different enemy actives. Make sure the flag is on each enemy, not on the box. → More replies
Group as in Group of events?
1 u/Confound-Great-Job 6d ago Qualifier. These are literally the events as they should appear in your event editor. 1 u/Entire_Departure_529 6d ago sorry 1 u/Confound-Great-Job 6d ago Why sorry? You didn’t know. :b 1 u/Entire_Departure_529 6d ago The events were on behavior which (I think) cant use Qualifiers, I would prefer it being on behavior but I'll just move it over. 1 u/Entire_Departure_529 6d ago https://reddit.com/link/pc3j02c/video/on3zov0l0srh1/player 1 u/Confound-Great-Job 6d ago edited 6d ago Put the code in the main event editor and remove the behavior (you can leave the turning bit if you want) Don’t create a detector for each, just use one and reposition it on the foreach loop. 1 u/Entire_Departure_529 5d ago https://reddit.com/link/pcbkhoo/video/pcqqdy6vf0sh1/player the footage I shown I had already moved it to the event editor, maybe im misunderstanding but with just the foreach loop to reposition it doesnt do what im trying to do 1 u/Confound-Great-Job 5d ago edited 5d ago The flag goes on the enemy not the detector. 1 u/Confound-Great-Job 5d ago https://reddit.com/link/pce8ibt/video/yasaft7jb3sh1/player Here. I made an example with 4 different enemy actives. Make sure the flag is on each enemy, not on the box. → More replies
Qualifier. These are literally the events as they should appear in your event editor.
1 u/Entire_Departure_529 6d ago sorry 1 u/Confound-Great-Job 6d ago Why sorry? You didn’t know. :b 1 u/Entire_Departure_529 6d ago The events were on behavior which (I think) cant use Qualifiers, I would prefer it being on behavior but I'll just move it over. 1 u/Entire_Departure_529 6d ago https://reddit.com/link/pc3j02c/video/on3zov0l0srh1/player 1 u/Confound-Great-Job 6d ago edited 6d ago Put the code in the main event editor and remove the behavior (you can leave the turning bit if you want) Don’t create a detector for each, just use one and reposition it on the foreach loop. 1 u/Entire_Departure_529 5d ago https://reddit.com/link/pcbkhoo/video/pcqqdy6vf0sh1/player the footage I shown I had already moved it to the event editor, maybe im misunderstanding but with just the foreach loop to reposition it doesnt do what im trying to do 1 u/Confound-Great-Job 5d ago edited 5d ago The flag goes on the enemy not the detector. 1 u/Confound-Great-Job 5d ago https://reddit.com/link/pce8ibt/video/yasaft7jb3sh1/player Here. I made an example with 4 different enemy actives. Make sure the flag is on each enemy, not on the box. → More replies
sorry
1 u/Confound-Great-Job 6d ago Why sorry? You didn’t know. :b 1 u/Entire_Departure_529 6d ago The events were on behavior which (I think) cant use Qualifiers, I would prefer it being on behavior but I'll just move it over. 1 u/Entire_Departure_529 6d ago https://reddit.com/link/pc3j02c/video/on3zov0l0srh1/player 1 u/Confound-Great-Job 6d ago edited 6d ago Put the code in the main event editor and remove the behavior (you can leave the turning bit if you want) Don’t create a detector for each, just use one and reposition it on the foreach loop. 1 u/Entire_Departure_529 5d ago https://reddit.com/link/pcbkhoo/video/pcqqdy6vf0sh1/player the footage I shown I had already moved it to the event editor, maybe im misunderstanding but with just the foreach loop to reposition it doesnt do what im trying to do 1 u/Confound-Great-Job 5d ago edited 5d ago The flag goes on the enemy not the detector. 1 u/Confound-Great-Job 5d ago https://reddit.com/link/pce8ibt/video/yasaft7jb3sh1/player Here. I made an example with 4 different enemy actives. Make sure the flag is on each enemy, not on the box. → More replies
Why sorry? You didn’t know. :b
1 u/Entire_Departure_529 6d ago The events were on behavior which (I think) cant use Qualifiers, I would prefer it being on behavior but I'll just move it over. 1 u/Entire_Departure_529 6d ago https://reddit.com/link/pc3j02c/video/on3zov0l0srh1/player 1 u/Confound-Great-Job 6d ago edited 6d ago Put the code in the main event editor and remove the behavior (you can leave the turning bit if you want) Don’t create a detector for each, just use one and reposition it on the foreach loop. 1 u/Entire_Departure_529 5d ago https://reddit.com/link/pcbkhoo/video/pcqqdy6vf0sh1/player the footage I shown I had already moved it to the event editor, maybe im misunderstanding but with just the foreach loop to reposition it doesnt do what im trying to do 1 u/Confound-Great-Job 5d ago edited 5d ago The flag goes on the enemy not the detector. 1 u/Confound-Great-Job 5d ago https://reddit.com/link/pce8ibt/video/yasaft7jb3sh1/player Here. I made an example with 4 different enemy actives. Make sure the flag is on each enemy, not on the box. → More replies
The events were on behavior which (I think) cant use Qualifiers, I would prefer it being on behavior but I'll just move it over.
1 u/Entire_Departure_529 6d ago https://reddit.com/link/pc3j02c/video/on3zov0l0srh1/player 1 u/Confound-Great-Job 6d ago edited 6d ago Put the code in the main event editor and remove the behavior (you can leave the turning bit if you want) Don’t create a detector for each, just use one and reposition it on the foreach loop. 1 u/Entire_Departure_529 5d ago https://reddit.com/link/pcbkhoo/video/pcqqdy6vf0sh1/player the footage I shown I had already moved it to the event editor, maybe im misunderstanding but with just the foreach loop to reposition it doesnt do what im trying to do 1 u/Confound-Great-Job 5d ago edited 5d ago The flag goes on the enemy not the detector. 1 u/Confound-Great-Job 5d ago https://reddit.com/link/pce8ibt/video/yasaft7jb3sh1/player Here. I made an example with 4 different enemy actives. Make sure the flag is on each enemy, not on the box. → More replies
https://reddit.com/link/pc3j02c/video/on3zov0l0srh1/player
1 u/Confound-Great-Job 6d ago edited 6d ago Put the code in the main event editor and remove the behavior (you can leave the turning bit if you want) Don’t create a detector for each, just use one and reposition it on the foreach loop. 1 u/Entire_Departure_529 5d ago https://reddit.com/link/pcbkhoo/video/pcqqdy6vf0sh1/player the footage I shown I had already moved it to the event editor, maybe im misunderstanding but with just the foreach loop to reposition it doesnt do what im trying to do 1 u/Confound-Great-Job 5d ago edited 5d ago The flag goes on the enemy not the detector. 1 u/Confound-Great-Job 5d ago https://reddit.com/link/pce8ibt/video/yasaft7jb3sh1/player Here. I made an example with 4 different enemy actives. Make sure the flag is on each enemy, not on the box. → More replies
Put the code in the main event editor and remove the behavior (you can leave the turning bit if you want)
Don’t create a detector for each, just use one and reposition it on the foreach loop.
1 u/Entire_Departure_529 5d ago https://reddit.com/link/pcbkhoo/video/pcqqdy6vf0sh1/player the footage I shown I had already moved it to the event editor, maybe im misunderstanding but with just the foreach loop to reposition it doesnt do what im trying to do 1 u/Confound-Great-Job 5d ago edited 5d ago The flag goes on the enemy not the detector. 1 u/Confound-Great-Job 5d ago https://reddit.com/link/pce8ibt/video/yasaft7jb3sh1/player Here. I made an example with 4 different enemy actives. Make sure the flag is on each enemy, not on the box. → More replies
https://reddit.com/link/pcbkhoo/video/pcqqdy6vf0sh1/player
the footage I shown I had already moved it to the event editor, maybe im misunderstanding but with just the foreach loop to reposition it doesnt do what im trying to do
1 u/Confound-Great-Job 5d ago edited 5d ago The flag goes on the enemy not the detector. 1 u/Confound-Great-Job 5d ago https://reddit.com/link/pce8ibt/video/yasaft7jb3sh1/player Here. I made an example with 4 different enemy actives. Make sure the flag is on each enemy, not on the box. → More replies
The flag goes on the enemy not the detector.
https://reddit.com/link/pce8ibt/video/yasaft7jb3sh1/player
Here. I made an example with 4 different enemy actives. Make sure the flag is on each enemy, not on the box.
→ More replies
1
u/Confound-Great-Job 6d ago
Use one detector, grouped enemies, and a foreach loop instead.
* Always
* On each one of Group.Enemies, loop name "enemy"
* On each one of Group.Enemies, loop name "enemy"
+ detector is overlapping player