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
44
S
12
G
13
Posts: 628
Reputation: 10,471

Post » Sun Feb 05, 2012 8:59 pm

You can't, there's no way to load textures from disk yet!
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Sun Feb 05, 2012 11:01 pm

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

Post » Sat Oct 18, 2014 1:35 pm

@Ashley,

Is there a way to load an image string into the settexture function?
B
68
S
21
G
15
Posts: 701
Reputation: 15,604


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests