prueba de rondas + ia zombis

  • 2
    This content is deleted
    Game
    prueba de rondas + ia zombis
    0 favourites

    An 2d CoD experience based, experiencia basada en call of duty zombis, todavía en progreso juego en alfa (concepto).

    7 months ago
You're viewing a single comment in a conversation. View all the comments
  • 3 Comments

  • Order by
  • I like the idea! I can see that you implemented rounds, very cool! As for the overlapping zombies problem you mentioned, I'm not sure. I haven't used construct since I made Hats. But, you can maybe try using condition "for each/every" zombie object Loop on the same event you use for overlapping, then make a global variable 'counter,' and instance variable on zombie object also called 'counter.' Then, on your 'for each' event add 1 to global counter then set zomb instance counter = to global counter, and then a wait for at least a frame ~0.05 seconds, then (maybe print global counter to console to check that it's counting correctly) then reset global counter to 0. Then in a seperate Event check if Zomb object counter variable is = 1 in which case, it should be deleted.

    There could be a better way if you look into construct's documentation, but that's just my best guess to solve that problem, best of luck!

    • gracias, thank you i will try you version, i found another way, with the UID... first to click the obj need the next like this

      [on left button clicked on zomb ]__________[destroy]

      [pick instance with UID zomUID ]

      is a little weird but i hope you understand

      this compare if you clicked an obj wit the same UID, diferentes UID not are afected, if you have 10 obj in the same place with this you just destroy the first obj in front