renderer.SetTexture

For developers using the Construct 2 Javascript SDK

Post » Sun Feb 05, 2012 1:35 pm

How to do this in the edittime.js :
'image.png' is saved into the plugin folder.
[code]renderer.SetTexture('image.png');[/code]
septeven2012-02-05 13:35:47
B
45
S
12
G
13
Posts: 628
Reputation: 10,496

Post » Sun Feb 05, 2012 8:59 pm

You can't, there's no way to load textures from disk yet!
Scirra Founder
B
366
S
217
G
82
Posts: 23,214
Reputation: 183,416

Post » Sun Feb 05, 2012 11:01 pm

Thx for replying @Ashley
Does it be already on your todo list?
B
45
S
12
G
13
Posts: 628
Reputation: 10,496

Post » Sat Oct 18, 2014 1:35 pm

@Ashley,

Is there a way to load an image string into the settexture function?
B
71
S
22
G
15
Posts: 706
Reputation: 15,809


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests