How do I let player upload sprite image?

0 favourites
  • 3 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • I would like a player to decide on sprite images and be able to upload them into a game before the game begins.

    Additionally, would it be possible to have the image sprites trimmed to certain size or keep them within dimensions of a certain scale during the upload process?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Use File Chooser to select a file. Then on use FileChooser On Changed event do Sprite Load image from URL, where URL= FileChooser.FileURLAt(0)

    Then on Sprite Image Loaded event you can resize it if needed. Note, that if you want to load multiple images, you need multiple sprite objects, or one object with multiple frames. The image is loaded into the current frame.

    I'm not sure about cropping. You can "crop" part of the image with Canvas or Paster addon. You can also load image directly into Canvas/Paster skipping the sprite.

  • Thanks for your feedback. Your contribution has showed me what could be done.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)