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
362
S
216
G
75
Posts: 23,100
Reputation: 180,442

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: 705
Reputation: 15,787


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests