GPProd's Forum Posts

  • 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..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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!!

  • No1 knows huh? ^_^

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

  • Hello there! ^_^

    I have for a while now been trying to create a simple project, where you as a main character can pick up any objects in game and throw them like a bullet that bounces.

    The problem here is, picking up is easy -> image points or pin, but throw is the hard one, i cant get the object to be thrown and bounce few times and right after be able to be picked up again without destroying it.

    Perhaps adding some physics to the object on a button push so it gets thrown like super mario or something?

    It should bounce few times and then stand completily still, making this action repetetive.

    Any capx or help for this? Thanks ^_^