Fast way to load files and sprite sheets during runtime

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.
  • Hey guys,
    Is there a way to load and separate sprite sheet into an active object, with animations - without an extension that doesn't work on Android.
    Plus - I want to use a dat file - load it with instructions into the engine, the instructions will define amounts of frame in each animation, speed, etc.
    Thanks :)

  • 1. ctf doesn't supports loading spritesheets at runtime. Only way to do that is - separate each animation frame to individual pieces and give them like: walk001.png, walk002.png, walk003.png so on... and load it into Active or Active Picture.
    2. the easiest way to handle info about animation in external place - by ini file.

    Please login to see this link.

  • The only way to do this during runtime on android that I'm aware of is with an Active Picture object. Set the active pictures size to the size of one of your animation frames, & then adjust the XY offset functions to display different portions of your spritesheet. Essentially you'll need to write a custom animation system. You might also need to fiddle with a few other Active Picture settings, like the "resize to fit"-type function (I forget its exact name) to get it looking the way you want.

    Sorry for the mini-necro.

Participate now!

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