[Behavior] Inject base64 string as Sprite Image

Post your completed addons to share with the community

Post » Mon Apr 23, 2012 4:53 pm

Is there a way to put base64 text in the sprite (or text at all :P)
B
12
S
3
G
4
Posts: 55
Reputation: 3,186

Post » Mon Apr 23, 2012 4:53 pm

BTW, thanks for the plugin...It's a big help! God bless :)
B
12
S
3
G
4
Posts: 55
Reputation: 3,186

Post » Tue Apr 24, 2012 3:39 am

Just had an epiphany. Rojo's canvas has the ability to create a base64 url...
Draw to, or paste to canvas, inject canvas into sprite....nice.
Only works without webgl atm though.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Thu May 03, 2012 3:46 am

This behavior is awesome, but I had to disable webGL to get it to work in Firefox and Chrome. Opera and IE handle it unconditionally, no problem.
B
51
S
13
G
8
Posts: 194
Reputation: 7,311

Post » Thu May 03, 2012 8:03 am

@Mulkaccino : it doesn't work with WebGL for the moment (as a lot of behaviors/plugins here) because I don't know how to force C2 to load an image as a WebGL texture after the framework was loaded...
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Mon May 07, 2012 3:46 pm

@Pode - Again, thanks for this behavior. However, I'm having one problem with it - it doesn't seem to load the image when the game is initially loaded (sometimes) Sometimes it's fine. However, if you refresh the browser, the first image will load properly. If someone could look at it, I'd appreciate it!

Thanks a ton

Here's a link to the .capx
http://dl.dropbox.com/u/12722403/3dcardModify.0.9.3.noJSON.capx

and the images (you'll have to change the path to the images on the New Question event sheet, event 2)
http://dl.dropbox.com/u/12722403/images.zip
B
12
S
3
G
4
Posts: 55
Reputation: 3,186

Post » Sun May 20, 2012 2:12 am

Is it possible to have multi instance sprite image with different Inject base64 string ?
B
4
G
1
Posts: 22
Reputation: 519

Post » Sun May 20, 2012 10:18 am

@curtischa, : if I understand well your question, on the same Sprite you can inject different base64 string one after the other (provided you saved them before in their own var, of course).
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Sun May 20, 2012 12:18 pm

Exactly what I want is to create many instances of single sprite image with different inject strings. Would you mind teaching how can I do it?
curtischan2012-05-20 14:33:46
B
4
G
1
Posts: 22
Reputation: 519

Post » Mon May 21, 2012 1:56 pm

This plugin seems unstable in mobile devices, such as android or ipad. The sprite image doesn't show itself occasionally. [solved]curtischan2012-05-22 09:07:21
B
4
G
1
Posts: 22
Reputation: 519

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest