global object graphic loading

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,

    I created the global object used on multiple frame.
    This object have got heavy weight graphic and I want to load this graphic from file (In total I've got 200MB exe file and I want to make them smaller).
    So I made 100% black object in ClickTeam, and on first frame I load frame from file (animation -> load frame).
    Unfortunately when I change frame, my picture is black again.
    Is it possible to load graphic from file to global object only one on the beginning and keep them in memory?
    I can load object before each frame but I prefer single loading frame if possible. Loading the same image after each frame change sounds very bad.
    I used active object, global - identical object, and physics, do not create on start (however I tried with create on start to).

    It should work looking for this topic, however it doesn't and I've got no idea why
    Please login to see this link.


    Best Regards

    Please login to see this link.
    please help - just give me a feedback

  • I used active object, global - identical object

    Don't use this mode. Use Same name and type mode instead. I discovered this myself the hard way just Please login to see this link.. Unfortunately, this won't help with your current problem. I checked, and neither mode results in the frame being loaded on the second frame. I'm quite curious about why this happens myself, actually. :o

    Please login to see this link.
    My Fusion Tools: Please login to see this link. | Please login to see this link. | Please login to see this link.

  • Don't use this mode. Use Same name and type mode instead. I discovered this myself the hard way just Please login to see this link.. Unfortunately, this won't help with your current problem. I checked, and neither mode results in the frame being loaded on the second frame. I'm quite curious about why this happens myself, actually. :o

    Why You dont use Identical Objects? In most cases I want the same graphic and properties in all frames...


    It works much worse than I thought
    To load image from file You have to use option "Create at start" !
    If You don't check it, then You have to load image from file after each object creation!

    So if I want to load Bullet from file, and Bullet shouldn't exist on start, I have to load graphic from file after each shoot :D
    or
    create bullet on start, load image from file and destroy bullet :D
    Sounds crazy!

    However even "crete at start" do not work across frames. If You create at start object at Frame1, image loded from file will be reseted to default on Frame2 :/ I checked all options "do not reset current frame...", "load on call", both global types, "create at start", nothing help

    Please login to see this link.
    please help - just give me a feedback

  • Why You dont use Identical Objects? In most cases I want the same graphic and properties in all frames...

    If you want the same graphic and properties, then that's why you shouldn't use "identical" mode. I know, it's crazy. More info Please login to see this link. (and in Yves' response further down):

    Please login to see this link.
    My Fusion Tools: Please login to see this link. | Please login to see this link. | Please login to see this link.

  • Why You dont use Identical Objects? In most cases I want the same graphic and properties in all frames...

    You misunderstood how this works. The Editor Synchronization option is explained in the documentation:

    Quote

    This option allows you to specify how global objects are synchronized across all frames in the editor. If this option is set to "No", the global object is not synchronized with others. If this option is set to "Identical Objects", the objects identical to the current are synchronized with it (this is the old way, which doesn't work sometimes for some objects, especially when they have behaviors). If this option is set to "Same name and type", the global objects with the same name and type as the current object will be synchronized with it. When you create a new object, this option is set to "Same name and type" by default. In old applications, this option is set to "Identical objects" for the existing global objects.

    "Identical" doesn't mean the objects will become identical, it means the changes in objects will be propagated to identical objects. Unfortunately, as mentioned, the "equality" detection between objects in different frames is bugged for some objects and we couldn't find what was wrong. Maybe as we didn't touch this code for a long time this problem is even worse now. This is a legacy option, and maybe nowadays we should just remove it, or at least rename it to something like "Only if identical (legacy)" as Volnaiskra suggested.

  • [MENTION=15682]Volnaiskra[/MENTION] thanks for explaining how global objects work, I tried making a couple in the past and they never really worked properly, I probably chose identical because it seemed to be the most solid choice for a prefab-type object, but apparently the less obvious name is the better choice!

    Please login to see this link.

    Please login to see this link.

    Please login to see this link.

Participate now!

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