User Tag List

Results 1 to 4 of 4

Thread: Picture From Selector

  1. #1
    No Products Registered

    Join Date
    Oct 2008
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Picture From Selector

    Ok, i have a scpecific question. I'm trying to make a character creation screen for an rpg, and what i need is to make possible for the player to select an avatar for his character among some i supply or from any picture he have on his hard disk. I tried this way:

    1) I created 6 picture objects (one for each character slot) with no images inside.

    2) I made a picture to display when the character slot is empty and put 6 copies of it in a folder of the game, calling them PG0.JPG, PG1.JPG... PG6.JPG.

    3) I set in the event editor that each of these object has to load "always" corresponding picture, so the first of them will load PG1.JPG and so on.

    Now what i would like to do is that:

    4) When the player click the button that create the character, he will prompted with the selector to select the avatar. I know how to do that.

    Minor question: there's no way to make the selector display by default a thumbnail of the pictures, instead of file names? It would be more like real games... it's not that important anyway.

    5) At the same click, the image he chose must be copied on the corresponding PGX.JPG file, overwriting it. This way that will be he image displayed in that picture from now on.

    That's what i don't know how to do: I think i should use the "file" item, but i dont't know where to take the selected image path info to make him copy it on the other file as i want. Any idea?

    6) When deleting the character, the file PG0.JPG (a safe copy of the "no character" image) wil be copied again one the corresponding PGX.JPG, restoring the initial situation. There's no problem with this, i know how to do it.

    Obviously any other idea to solve the problem, even completely different, would be well accepted... thansk in advance

    P.S.: If it's a noob question please forgive me, i'm just starting... and forgive me for my bad english too ^_^

  2. #2
    RayMarble
    Guest

    Re: Picture From Selector

    Here's how I'd do it:

    needed object: an active picture (using it's altValue A to store "file selector index")

    depending on what the player clicks, I'd set the "file selector index" to something from 1-6, and then set the Active Picture to load

    "New picture: appapth$+"graphics/chars/parts/bodypart"+(file selector index of the active picture)+".png"

    (change the "graphics/chars/parts/bodypart" to wherever you store your graphics)
    This way you could avoid overwriting files etc

  3. #3
    No Products Registered

    Join Date
    Oct 2008
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Picture From Selector

    Thanks! I'm going to try it as soon as possible

    EDIT

    I just realized i don't know how to store the "file selector index" you said... in event editor i right-click under the picture object, click "alterable values", "Set", and then? What's the string i have to put in it? :-/

    Another thing: if the player chose an image from his HD shouldn't i copy it somewhere in game's dir? If not the pic could disappear, if the player delete or move it from its original folder...

  4. #4
    RayMarble
    Guest

    Re: Picture From Selector

    Here`s a quick example, I didn`t comment it so ask if there`s anyhting unclear.

    Select a flag.

    The most important part is the
    New picture -> apppath + "altString" etc.

Similar Threads

  1. Active Picture by File Selector?
    By StingRay in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 31st March 2015, 06:28 PM
  2. [BUG 257-9] Destroying an Active Picture after loading using selector crashes
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 11th April 2013, 02:47 PM
  3. BUG: Active Picture > New Picture from Selector doesn't wait for image - Beta9
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 27th January 2013, 03:09 PM
  4. Alterables and "new picture from selector"
    By Gibbon in forum File Archive
    Replies: 0
    Last Post: 17th December 2006, 10:21 PM
  5. Alterables and "new picture from selector"
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 17th December 2006, 10:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •