Checking each object with a loop without object name

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, I hope you can help.

    I am looking to have many active objects that I will manually add to the frame, this is because each one will have a different number on them and/or image. I am giving each object an alterable string name (the same name as the image shows, I'm doing this through the properties panel) I have added an 'Edit box' to the frame too.

    What I would like to do is have an object highlight when I type the name of the objects alterable string in the edit box area. How can I get a loop to check each object for its alterable string and compare it to the text box whenever I type into the edit box (without having a submit button).

    At the moment I have the edit box checking each object manually, once the object count increases this won't really be a feasible way to do this.

    Thanking you in advance.

  • Hi,

    Thank you for your very quick response, I have had a look at the example you have given, this is a great example, however, the actives that you creating are on each run of the application, the version I am creating has to already have the objects added to the frame, so for example I have object "say a triangle", then another object "say a circle", then another "a square". On each one of these objects I have given a unique alterable string of the same object. I want to add them to the stage before the application is run for a reason.

    I hope this makes sense.

    Kind regards

  • Yes of course, just group all the objects into a qualifier and run the loop over the qualifier...

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • No problem. On every object you want this to apply to, select its properties, click on the 'Events' tab, where it says 'Qualifiers', click 'Edit' then 'Add' and select a qualifier. Do the same qualifier for all the objects that you want to include in the search. Then in the events (as per example) just replace all the events (and the foreach loop) with the qualifier under events.

    Putting objects into a qualifier means you can 'group' objects together and just do 'events' for that qualifier which will affect all objects under that qualifier. It saves you having to write events for each separate object.

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • Excellent, thank you. So the qualifier can be any one of those, it is just asking to use one as a reference?

    Thank you so much for your help. Things are starting to make a little more sense with Fusion 2.5 now. Keeping an eye for your tutorials too.

  • Yes, these are purely for visual representation so you can assign any object to any qualifier. An object can also be included in as many qualifying groups as you want. It's very handy when running over multiple different objects to narrow objects out based on certain conditions.

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • Excellent! Glad you got it sorted. Best of luck with your Fusion developments!

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

Participate now!

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