Majinboo's Recent Forum Activity

  • Use compare distance with variables

    https://www.scirra.com/tutorials/1320/p ... enemies-ai

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • i have an array with a lot of enemies, ordered by "NO_CLICKED", name, type, color, LEVEL (this level never change) and XP LEVEL. ->

    Right now this array is in JSON format and is spawing 5 objects at the same time using LEVEL and if the object is NO_CLICKED (0). ->

    If you click the enemy and destroy it then the enemy will respawn again because NO_CLICKED will have the value 0 and the enemy didn't level XP up or will level XP down, however if you destroy the enemy without clicking it then the enemy will level XP up. ->

    What i want? well i want that my enemies respawn by time and time will be determinated by level XP, something like this: ->

    Here i tried to use the plugin rex revive behavior but it didn't work because i need to save my values in the array and i don't need to revive the sprite specifically because the values are in the array, how i can do this with my array? i need to use real time and some enemies need to respawn maybe in 48 hours, for example... the player will save the game progress then if the player open the game after 48 hours then the enemy will appear of course i want to use waves, for example 5 enemies appear at the time otherwise you will have +30 enemies on screen and this is not the idea, each enemy will have his own time countdown, for example you destroy an enemy and the enemy level UP to 5 then this enemy will respawn in 72 hours.

    i need the help of this comunity please because i am very sure that i cant do this myself because i spend a lot of time reading tutorials etc and i am not programmer <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad"> ... any advice, tutorial, guide or whatever help will be appreciated, thanks!

    MY CAPX ->

    http://www.filedropper.com/arrayspawnbylevelandxp

  • I think I might have the wrong idea of how loops work, as well as local variables. I wish the debug panel could should array values in a grid or something..

    Yes, the debug panel helps you to check if the array is modified, but the next array tool helps me a lot to understand and handle the arrays:

    I partially solved my problem with the array, check the part of the code that solves my problem, maybe can help you too:

    Now i can find two values in the array and if are matching then spawn new enemies, but sometimes didn't work because sometimes just spawn 4 objects instead 5.

  • create 3 Compare variable > greater or equal value -> action

  • i have the same question, arrays are hard, i dont know if this will help you but this piece of code works perfectly to me:

    With this code i can find 1 value in the array but i need to find another value in the array and if two values are matching then -> action (spawn enemies in this case)

    i am reading this:

    http://www.gamechange5.com/devpage/10

    maybe the answer its here, maybe we need nested loops.. i am still reading

  • Use a playerbox (PIN empty sprite over your character) to avoid collision mistakes and use variables to the animations.

  • I want this: spawn 5 enemies in order by level, (never seen monsters `Have value 0 in the array`) , after you destroy the 5 enemies then spawn 10 old enemies (have value 1 in the array because you already seen this monsters) in order by level, i want this cycle but obviously with pauses sometimes so you can advance to the next stage.

  • use the rex plugin moveTo:

  • i think i fixed it https://mega.nz/#!hZdk2ZAT!qwp40D5hS_O0 ... 9pNj6Hu-yw

    it works with the 0 origin point.. you dont need to have all those origin points.. there is no database to check if their occupied... so instead of that i checked the positioned of objects and overlapping each other it shoots 2 times... first time picks all familly then if any of them objects overlaps same position object picks that object and moves it on another empty slot...

    i think thats what you wanted <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Yes!!!!!!, thank you so much!!! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

Majinboo's avatar

Majinboo

Member since 21 Jun, 2015

None one is following Majinboo yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies