Selecting random movements within a behaviour

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, Its been a long time since I last posted on these forums (the old forums) 8 years infact.

    I'm getting stuck with trying to select random movements,

    I have an enemy which is created outside the frame. The enemy selects a movement out of 3 possible (all path) movements. Then carries out that movement onto the screen , eg 1 up , 2 down , 3 straight. However, because you cannot select the movement name in the enemy behaviour event editor, it seems to ignore the event. For information, when I select next movement it seems to work.

    Every 3 seconds > Create enemy at position (x,y) + Set counter to random (3)

    When enemy is outside frame + Counter = 1 + Event runs only when event loops > Select movement 3 (want to select movement name here - movement number doesn't seem to work) + Start

    I've tried searching for a relevant post but could only find this slightly similar,
    Please login to see this link.

    Could you please suggest a way to achieve this?

  • Ah solved it.
    1. Need to set the position of enemy in x or y instead of using out of play area condition.
    2. Write the "When enemy is outside frame + Counter = 1 + Event runs only when event loops > Select movement 3 (want to select movement name here - movement number doesn't seem to work) + Start" part into the level event editor not the behaviour.

Participate now!

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