Request: Upload Image as Adjustable Sprite at Run

Post your work in progress addons and get feedback

Post » Sat Dec 01, 2012 1:54 pm

Maybe someone can point me at the plugin or method to do this, but I would like a user to upload an image while running the game that can be imported and used as a sprite.

It would be nice if I could set the X and Y, detect import size, and resize.

A simple example of how this could be used: Import a picture of someone's face and place it on a sprite.

If this is already done help me out and point me in the right direction :D
B
20
S
4
G
2
Posts: 124
Reputation: 2,482

Post » Sun Dec 02, 2012 2:40 am

Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Sun Dec 02, 2012 4:08 am

Its somewhat related, but I would like someone to upload an image they have from their desktop and use it in a C2 constructed game.

I'm sure tutorials like http://www.script-tutorials.com/ajax-file-upload-methods/ have all that's needed to do what I'm looking for. But I am not a programmer, so get pretty lost in how to apply it. But then there are also the other features I would like to be handled by C2.

Do you know of any working examples that show how you can upload and image to an active C2 Game?
B
20
S
4
G
2
Posts: 124
Reputation: 2,482

Post » Sun Dec 02, 2012 6:17 am

[QUOTE=IsometricRobot] Its somewhat related, but I would like someone to upload an image they have from their desktop and use it in a C2 constructed game.

I'm sure tutorials like http://www.script-tutorials.com/ajax-file-upload-methods/ have all that's needed to do what I'm looking for. But I am not a programmer, so get pretty lost in how to apply it. But then there are also the other features I would like to be handled by C2.

Do you know of any working examples that show how you can upload and image to an active C2 Game?[/QUOTE]

Pode has released 2 Plugins for importing images and text into your games-

1,   'Drag and drop zone'
2,   'File reader plugin'

They allow you to DRAG'n' DROP (or BROWSE/IMPORT) the following file formats straight from the desktop-

1, GIFF, JPEG, PNG all load ok....although I can't get BITMAP files to load)

2, SVG files also WORK, I discovered today ! !

3, Base64 files (saved as txt)

4, Any basic Text file (.txt)

5, COPY/PASTE files directly into your game.

6, Import Images and files using the AJAX REQUEST method.

Check them out in this Plugin Section...they also come with a couple of Capx examples.

THE MANS A LEGEND.

Let me know if you get stuck ?


B
19
S
6
G
7
Posts: 1,205
Reputation: 7,298

Post » Sun Dec 02, 2012 6:24 am

Awesome, that looks about right what I need for my next project. Bookmarked.

Drag and drop zone
http://www.scirra.com/forum/plugin-dragndrop-zone_topic58578.html

File reader plugin
http://www.scirra.com/forum/plugin-filereader_topic50038.html
B
20
S
4
G
2
Posts: 124
Reputation: 2,482


Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests