nicholasruki's Forum Posts

  • export function initHeroAISystem(runtime) {

    console.log("[System] Initializing HeroAI listener...");

    runtime.addEventListener("instancecreate", e => {

    const inst = e.instance;

    if (inst.objectType === runtime.objects.H_base) {

    alert(`[1. Capture successful] UID: ${inst.uid}`);

    const timer = inst.behaviors.Timer;

    if (timer) {

    timer.addEventListener("timerfinished", ev => {

    alert(`[2. Signal Capture] Timer expired!\nTag received: "${ev.tag}"\nExpected tag: "attack_cooldown"`);

    if (ev.tag.trim() === "attack_cooldown") {

    alert("[3. Final Success] Status has been reset!");

    inst.instVars.State = "idle";

    } else {

    }

    });

    }

    }

    });

    }

  • I'm not a professional programmer, but I'm very interested in game development. I've studied Construct 3 extensively and even tried making my own games. However, I've encountered a problem. The code I wrote using event tables in Construct 3 and the code I wrote using JavaScript in AI produce the same result. So, my question is: what's the difference between these two methods?

  • I want to spawn 7 monsters in 10 seconds but in increasing numbers, like "1.1.0.1.0.2.0.0.0.2" or "1.0.0.1.0.2.1.0.0.2". Instead of 7 random ones, because in random case 7 monsters may appear in the first few seconds. Instead of spawning all 7 monsters in the 10th second.

  • Based on this type of square

  • I edited 3 combinations, but how do I refer it!

    All that are created are the first grid,not grid2

  • I need to generate automatically. For example, if I have a level, if it is 3, it will automatically generate 3 permutations and combinations, if it is 5, it will automatically generate 5 grid permutations and combinations, and so on.

  • Tried to use an array to store coordinates. But failed.

    Tagged:

  • How can I make the player jump to the center point of the next 128 pixel grid after clicking it, and land in a parabolic manner?

  • Thanks Man!

  • If I want the ingredients to have quantities. How should I sort?

  • I can't sort the two groups.

  • dropbox.com/scl/fi/d1jwo9n3q3mkhh91tbi4o/Cooking.c3p

    I have made a list. Clicking on the ingredients will also write them into the json content. But I can't sort them. If the first cell is not egg but other two ingredients, I can't synthesize them.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I want to make a cooking system. I created a Json and wrote the content. But how can I determine if the food in the scene is the food I need to synthesize?

  • Yeah!!!!!This is what I want.!!! It turns out that "set json" is used.

    I want to realize an idea of ​​equipment.When I list all the gear.Get equipment by clicking on it.The data writing item of this equipment represents that I own the equipment, so that I can use the equip I have obtained toupgrade and strengthen it.