How do I change a sprite useing the new File chooser feature

Get help using Construct 2

Post » Wed Jun 25, 2014 9:48 pm

How do I change a sprite useing the new File chooser feature :?
B
5
Posts: 24
Reputation: 271

Post » Wed Jun 25, 2014 10:23 pm

Use Sprite's 'Load image from URL' action and pass the FileURL from the file chooser object.
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,351

Post » Wed Jun 25, 2014 10:54 pm

Ashley wrote:Use Sprite's 'Load image from URL' action and pass the FileURL from the file chooser object.

how do i get the fileurl?
B
5
Posts: 24
Reputation: 271

Post » Wed Jun 25, 2014 11:13 pm

Ashley wrote:Use Sprite's 'Load image from URL' action and pass the FileURL from the file chooser object.

btw you should add a (load image/file from file chooser) action
B
5
Posts: 24
Reputation: 271

Post » Thu Jun 26, 2014 1:19 am

Code: Select all
Global text prev = ''
FileChooser on changed
    -  prev != ""          FileChooser release file prev
    -  Trigger Once   Set prev to filechooser.fileurlat(0)
                                 Sprite load from image prev   
B
11
S
2
G
1
Posts: 202
Reputation: 1,580

Post » Thu Jun 26, 2014 4:20 pm

thx
B
5
Posts: 24
Reputation: 271


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests