Sir LoLz's Forum Posts

  • Hello.

    I want ai in a scene to look as if they are using the 8derection behavior with no turning smoothness. to look like they mimic classic player movement. I set diagonal movement to false. But they still have a little smoothness when the follow the path. How can I set Ai to absolutlly follow a path in 90 or 45 degree intervals with no smoothness?

    thanks.

  • that did it! thanks a ton man!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello.

    I'm working on an capture the flag like RTS were if you click the flag selected units will go to capture it.

    a flag will have a max number of carriers. Meaning if you have ten units selected but there are only five free spots on the flag. only the first five will first become unselected, then run to the flag to carry it.

    To achieve this I set the flag object with two variables. one called "maxcarry" and the other called "currentcarry". If currentcarry is less than maxcarry, The event would deselect then increase current by one. If I select one unit at a time then tell it to capture the flag. The method works. if there is a spot the unit will take it and if not it will stand still.

    However all units selected become unselected and go for the flag even if there is only one spot.

    How can I create a function/loop/event that will pick out the needed units, then send them to the flag in a what I would imagine would be a "first come first serve" style?

    Sorry I would attach a pic of the event, But I deleted it when I saw it did not work. it was just the condition that if currentcarry is less than max then deselect and go to the flag and increase current by one.

    Thanks

  • ohh that did it. Thanks guys!

  • here is a pic of the events that control it.

  • Hello.

    I have two behaviors for an rts like game. path finding and turret. The idea is that if an object is moving it will disable the turret behavior so they will only move. but as soon as they are done moving the turret behavior is enabled so they can fire.

    however upon testing I found that it turns the behavior on or off for all instances of that team. meaning that if at least one unit is moving none of the units on that team can fire. to try to fix this I added a variable "ismoving" that is 1 when is on the path and zero when stationary and added the turret behavior to the object instead of its family. however this did nothing.

    How can I make it disable or enable the turret behavior for just an instance based on if it is moving or not?

    Thank you.