Issues with Spread Value Identification

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 have a set of code that is supposed to work with a specific object at a time. Because of that, I'm using a system with spread values.

    Basically, the system has an ID (spread value) for all the objects in a group. When a trigger object is activated, and the objects linked to that are overlapping one of the objects in a group, the objects get the ID (spread value) of group object that's overlapping it and changes it to one of its Alterable Values.
    It then runs some events with filters that prevent any object without the same ID as the alterable value from running the actions.

    Unfortunately, even though the trigger is going off, and the object is retrieving and storing the alterable value, I can't get the action to work. I've tested my code with and without the filter and it does work without the faulty filter. (But applies to all the objects in the group.)

    Is there any reason why it might be doing this? (Let me know if you need any clarification or examples)

    -Wolfking_Warrior

    Thanks for your time!

  • There are 2 errors in the example.
    1) The way you link button and button control. You spread value 1 in value A for group "Areas" and the button(part of that group) was assigned value 4. But the "Button control" has it's "LinkedTo" value set to 0. The condition on line2 A(Group.Enemies)=B(Group.ValueHolder) is never true in this case. You need to link buttons to button control differently.
    2) Condition ValueB(ValueHolder) = ValueA(Areas) you are using to filter the right object to move. This condition does not filter object passed as the second parameter. You can just swap it for ValueA(Areas) = ValueB(ValueHolder).

Participate now!

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