GPProd's Recent Forum Activity

  • No one seems to know this >.<

  • GPProd

    The .capx is missing one essential piece of info that's needed for it to work - the 'Id name' property of the FileChooser object that's used in the browser call.

    In the picture, they call it 'foo', so the browser call will be 'foo.click();'.

    Unfortunately, I can't attach the fixed .capx as this forum has broken again (@Tom).

    Hey, i am sorry but i did not understand that >.<

    I am pretty new to this, and.. All i understood was, change the "Js File_Chooser_id.click();" into "Js File_Chooser_id.foo.click();"

    But that didnt work either >.< .. Is it a hard change to make it work?

    Very much appreciate your response ^_^

  • :lol: not a problem, glad I could help.

    Hey! I just tried that capx and nothing happens? Has the C2 update nulled this or? How can it be done now? >.<

  • Greetings there! ^_^

    So i newely bought the C2 and have looked up on the tutorials, but however there is 1 thing i need help with!

    The file chooser! What i want to do is simply;

    Allow to upload an image 1 by 1, that is let's say you run the program. You upload an image, and 5 minutes later you upload another image -

    without replacing the first one. So far i have set

    Sprite 1 to load FileChooser.FileURLAt(0)

    Sprite 2 to load FileChooser.FileURLAt(1)

    And etc. It does not work. It only works if you set file chooser to multiple files, ONCE though.

    But i want to be able to load up single files now and then WITHOUT replacing the existing one.

    Any help or capx? >.<

  • hello, ia am trying same thing... i want to create photo album and so far no results...

    Yeh same here, i want to be able to import images from time to time, not just 1 or 3 at once but rather 1 by 1..

    But it seems that it cant be done :/ ..

  • No1 knows how to import images 1 by 1?? Maybe it can't be done??

  • https://www.scirra.com/manual/182/file-chooser

    Specifically:

    [quote:2bo7vhcw]Select

    Whether to allow selecting a single file only, or multiple files in one go.

    ...and

    [quote:2bo7vhcw]FileNameAt(index)

    Return the name of the chosen file at an index. In Single select mode, the index should always be 0, since only one file can be chosen.

    Therefore, the first of a multiple select would have index of zero, next 1, then 2 etc....

    Yeh i already understand that, i just can't get it to work, i set it to, ''Every tick'' set sprite = (0), sprite2 = (1) etc as you described above.

    Still all of them reload as soon as i choose a new file to import.

    Thank you for your time and trying to explain it to me, i still didnt get it.. Newely bought C2 ^_^

    Edit: It works when i import multiple files at once, but not when i import 1 by 1 -

  • Hey there!

    So i read a very good thread on how to load images with file chooser, here https://www.scirra.com/forum/viewtopic.php?f=147&t=125350&p=888793&hilit=file+choose+file+chooser#p888793 -

    However it doesn't cover on how to import multiple images? If i use ''FileChooser.FileURLAt(0)'' with multiple sprites and a global variable, it keeps loading the same image on all the sprites.

    Any solution on how to important multiple images?? Thanks ^_^

    Edit: I want to import the files 1 by 1, not all at once. This way they keep overwriting each others, the first sprite takes the same image as sprite 2, etc. Any idea how i can import 1 file at a time and keep the image?

  • Try like this ... Works for me :

    Excellent! But how do i do when i want to important multiple images? Like perhaps say i wanna important 3 images, they all turn into the same first image i imported..

  • Here's a quick and dirty example. Use the arrow keys to move the blue "character" towards the ball. Once the character is close to the ball, the character will automatically pick the ball up. Throw the ball by pressing the space bar and the character will throw the ball and it will bounce off the ground. Hope this helps.

    Thanks alot for the help man! ^_^

    Really appreciated!!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • No1 knows huh? ^_^

  • Yeh i cant get it to work either, any capx or examples of this? xD

GPProd's avatar

GPProd

Member since 21 May, 2014

None one is following GPProd yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies