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: 631
Reputation: 10,987

Post » Sun Feb 05, 2012 8:59 pm

You can't, there's no way to load textures from disk yet!
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772

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: 631
Reputation: 10,987

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
87
S
22
G
16
Posts: 715
Reputation: 16,785


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests