Further problems with object selection

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.
  • I'm working on an enemy that crawls around on a ladder. It uses the Bouncy Ball movement, and its AI is supposed to make it rotate counterclockwise whenever it moves off of the ladder, so that it remains on top of it. Here is the code:

    NOT x("enemy"),y("enemy") is a ladder:
    -set direction to dir("enemy")+2
    -set angle to dir("enemy")*360/32

    The enemy's behavior is basically correct when I test it, but there's a big problem. Do you know what it is?

    Yep, you guessed it. It breaks when there's more than one of them. It only follows the behavior of the first instance of the enemy, and applies the action to both of them when the condition for that one enemy is met.

    Any way I can rewrite this code so that it handles each enemy separately?

Participate now!

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