Loading enemies in area and in order?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi all,

    Im thinking on how to load enemies in certain area, let say an arena and load them in my desire order. For example i have three types of enemies:

    1.Melee
    2.Range
    3.Magic

    And i have 5 melee,3 range and 2 magic that i want to load in order one by one let say melee,melee,range,range,melee,range,magic,melee,magic.

    Any command or object that i can look into?Maybe array of object(i currently use Unity with these, but in unity it can be prefill)?

    Thanks

  • There's a timer and you can do something like:

    * Timer equals 01''-00[INDENT] New Objects : Create Enemy 1 at (320,240) layer 1[/INDENT]


    * Timer equals 01''-50[INDENT] New Objects : Create Enemy 2 at (158,291) layer 1[/INDENT]


    Alternatively you can have a create event and limit how often it happens:

    * Number of Enemy 1 <= 5
    + Restrict actions for 01''-00[INDENT] New Objects : Create Enemy 1 at (320,240) layer 1
    [/INDENT]

    For the second option if they move on creation they'll have moved away from the spot so that the next one can be created at the same spot.
    Alternatively you can set the x value to a global value and change that every time.
    Or you can put the X value to a random value.


    You could also pre-create them by placing them on the board - untick the block - visible at start - and then make them visible one by one - that saves you the trouble of creating them at specific co-ordinates. It would be the same as example 1:

    * Timer equals 01''-00
    + Pick one of Enemy 1[INDENT] Enemy 1 : Reappear[/INDENT]

    Casual games: Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!