[Behavior] Extract Sprite to base64 string

Post your completed addons to share with the community

Post » Thu Jan 15, 2015 1:39 am

I know it's been years, but you've just saved me from an extra hour of work, thanks a lot Pode! :)
I'm making a very complicated system of multiplayer and wanted to be able to use Base64 as part of it (uploading custom characters) And now I can! :D
ImageImage
B
44
S
13
G
2
Posts: 252
Reputation: 6,246

Post » Tue Mar 24, 2015 7:50 am

53 Kb JPEG picture loads to sprite and then converts (with 5-6 seconds idle and 0 fps) into 400 kb text data..
I'm just trying to understand the meaning of this procedure..
It's a pity.. a had a lot of hopes on this conversion :(
B
8
S
1
Posts: 72
Reputation: 606

Post » Wed Mar 25, 2015 3:49 pm

NickRimer wrote:53 Kb JPEG picture loads to sprite and then converts (with 5-6 seconds idle and 0 fps) into 400 kb text data..
I'm just trying to understand the meaning of this procedure..
It's a pity.. a had a lot of hopes on this conversion :(


base64 seems only useful if you need to manipulates only strings data, as it "converts" files /data into a string.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093

Post » Wed Oct 19, 2016 7:04 pm

Hi Pode and friends,

Your behavior is very usefull for me with extract and the inject Image.

But when i use "Inject" with an instance of a sprite, all the instance are change, not anly the one i have selected.

And impossible to use with iPad? It block my appli or i have black sprite. Why?

Is there solutions?
Thank's
B
9
S
1
Posts: 72
Reputation: 631

Post » Sun Nov 20, 2016 5:39 pm

@dahu turn off WebGL
The whole life is in the movement.Stopped - fell asleep to hell...
B
14
S
3
G
1
Posts: 122
Reputation: 1,694

Post » Wed Feb 01, 2017 1:11 am

I'm so happy I wish I could travel back in time and hug you
B
27
S
8
G
6
Posts: 23
Reputation: 4,679

Post » Fri Jul 07, 2017 12:16 am

Hi @Pode

I love this Plugin, but it gives me too long strings that I can't upload to my server's database :cry: Would it be possible to implement something that compresses the images? I tried adding the effect "Pixellate" to the sprite I wanted to retrieve as a base64 string, but the string was the same as without the effect. Maybe it could be possible that the behaviour gives you the sprite with effects as base64 string, in order to let you control the size of the image.
B
18
S
5
Posts: 127
Reputation: 1,482

Post » Fri Jul 07, 2017 3:14 am

Images are already compressed very well.
That's why everyone uses them and not some bitmap, or string.
The only reason to use the string is if you want to encapsulate, which is impossible to do with Construct anyway.
Image ImageImage
B
168
S
50
G
163
Posts: 8,224
Reputation: 105,067

Previous

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest