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
Passionate developer

If my work helped you to make your project, please consider making a donation :)
B
44
S
12
G
14
Posts: 630
Reputation: 10,985

Post » Sun Feb 05, 2012 8:59 pm

You can't, there's no way to load textures from disk yet!
Scirra Founder
B
378
S
220
G
84
Posts: 23,863
Reputation: 188,019

Post » Sun Feb 05, 2012 11:01 pm

Thx for replying @Ashley
Does it be already on your todo list?
Passionate developer

If my work helped you to make your project, please consider making a donation :)
B
44
S
12
G
14
Posts: 630
Reputation: 10,985

Post » Sat Oct 18, 2014 1:35 pm

@Ashley,

Is there a way to load an image string into the settexture function?
www.h1k3.tech

We are here for you!
B
76
S
22
G
15
Posts: 708
Reputation: 15,958


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests