[Behavior] Inject base64 string as Sprite Image Forum Home > Construct 2 Development > Plugins for Construct 2 |
Post Reply
|
Page <1234> |
| Author | |
Post Options
Quote Reply
Posted: 23 Apr 2012 at 4:53pm |
|
|
Is there a way to put base64 text in the sprite (or text at all :P)
|
|
![]() |
|
Post Options
Quote Reply
Posted: 23 Apr 2012 at 4:53pm |
|
|
BTW, thanks for the plugin...It's a big help! God bless :)
|
|
![]() |
|
Post Options
Quote Reply
Posted: 24 Apr 2012 at 3:39am |
|
|
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. |
|
![]() |
|
Post Options
Quote Reply
Posted: 03 May 2012 at 3:46am |
|
|
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.
|
|
![]() |
|
Post Options
Quote Reply
Posted: 03 May 2012 at 8:03am |
|
|
@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...
|
|
![]() |
|
Post Options
Quote Reply
Posted: 07 May 2012 at 3:46pm |
|
|
@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 |
|
![]() |
|
Post Options
Quote Reply
Posted: 20 May 2012 at 2:12am |
|
|
Is it possible to have multi instance sprite image with different Inject base64 string ?
|
|
![]() |
|
Post Options
Quote Reply
Posted: 20 May 2012 at 10:18am |
|
|
@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).
|
|
![]() |
|
Post Options
Quote Reply
Posted: 20 May 2012 at 12:18pm |
|
|
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?
Edited by curtischan - 20 May 2012 at 2:33pm |
|
![]() |
|
Post Options
Quote Reply
Posted: 21 May 2012 at 1:56pm |
|
|
This plugin seems unstable in mobile devices, such as android or ipad. The sprite image doesn't show itself occasionally. [solved]
Edited by curtischan - 22 May 2012 at 9:07am |
|
![]() |
|
Post Reply
|
Page <1234> |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |