Player Drawn Sprites at 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.
  • I've been playing around with the idea of a game in which the player can design their own sprites and wondered if this was possible in Fusion 2.5.

    My current approach would likely involve something along the lines of a 32x32 grid in which the user could colour each pixel as they please. Upon completion, the grid would then be "cropped" out and placed into the frame of an active object. I'm guessing the player drawn sprite would have to replace the frame of an existing active object as I'm not sure of a way to create an entirely new active object at runtime (I'm not referring to an instance of an object).


    Does anyone know if this is possible? And, if so, point me in the right direction? It does not have to be applied in accordance with the above explanation, this was just a theory of how it could be done that I had in mind.

  • This is possible in a number of ways, none of them particularly handy though.

    1) using the Surface object instead of an active object, both for drawing and displaying result

    2) saving a "print screen" with screen capture object (cropping the saved area to specific drawn size) into a file - and then using the "load frame" action of active objects to load

    both solutions are windows only

    3) not really using a sprite, but 32x32 "active objects" dots as the drawing grid, and then saving the dots configuration in the grid
    (your grid "cells" relative positions to each other and color) and retrieving it/moving upon need

    this is cross platform also, but is going to be quite intensive if the player fills the grid a lot (1024 objects for a full grid...) XD

    a selection of my Fusion examples can be found Please login to see this link.

  • Ah, damn shame, I was hoping to keep it mobile friendly and option 3 sounds crazy intensive in terms of my end goal :(

    I could drop the size down to 16x16 but that's still pretty heavy on performance, and 8x8 is a little limited for what I'm after. I guess the idea is a little too advanced to be implemented into Fusion 2.5 currently so I guess I'll keep that feature on hold for now.

    Thanks a lot for taking the time out to reply :)

Participate now!

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