Is possible to simulate a database?

oxigenowoxigenow Member Posts: 17
edited November -1 in Working with GS (Mac)
Hi,

I´m starting to develop an iPhone app, where to show minerals from one museum.

While GS don´t support database, anyone knows how to call to photos and/or names into a screen with no duplicate actors (around 500 names with photo). Content is closed and no need to upgrade.

Thanks and sorry for my english

;-)

Comments

  • PhoticsPhotics Member Posts: 4,172
    In this scenario, you can create something like a database

    For the images, use "Change Attribute" and then change self.Image to X.png

    X is the name of your image.

    If you keep your images the same size, you can easily swap them out with attribute data. You could also use "Display Text" to create captions for each. Basically, create a template. Then, start creating data sets...

    Attribute Contents

    text1 This is a picture of me on the Staten Island Ferry!
    picture1 si.ferry
    text2 This is a picture of me in NYC.
    picture2 nyc.photo
  • oxigenowoxigenow Member Posts: 17
    thanks, it's sounds great.

    I will try it.

    Thanks for your time and knowledge ;-)
  • scorelessmusicscorelessmusic Member Posts: 565
    Oh, how I long for arrays. :D
  • design219design219 Member Posts: 2,273
    If you are just matching text to images, I would combine the text caption into the image png and save a step. Or in your case, a whole lot of steps.

    My dad was a geologist and I'll look forward to seeing this when you get it done. Are you doing this for a museum?

    _______________

    Nesen Probe http://itunes.apple.com/us/app/nesen-probe/id377766693?mt=8
    Tickle Stones http://itunes.apple.com/us/app/tickle-stones/id363484260?mt=8
    Food Fight! (free) http://itunes.apple.com/us/app/food-fight/id352646643?mt=8
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Do this. Name all you image files exactly the same except for a number - picture1.png, picture2.png, ect. and make sure they are the same size.

    Then create a game integer attribute (we'll call it game.picNumber)

    Create one actor.
    Have a rule that says when touch is pressed
    change attribute game.picNumber to game.picNumber+1
    change image to "picture"..game.picNumber..".png"

    Just be sure to select all attributes from the drop down menus - never type them in. You can type the other stuff in - (i.e. "picture".. and ..".png") but don't type game.picNumber

    That's it. Now every time you click the picture the image will change to the next one (assuming you named them in the correct order)
  • oxigenowoxigenow Member Posts: 17
    Thanks to all for your tips.

    To design219: I´ll notice to you about this project ;-) The app is based in a museum material, including minerals and industrial heritage, but will not be official for the museum. The app will be about the minery (extraction, history, lifestyle...) located in a specific location: Cartagena-La Unión (Murcia/Spain). In this town, know as "The New California" at the first of 20th Century, minery changed the architecture, lifestyle, folklore, etc... The minerals are only those than were extracted in this zone.

    I have studio photographies (I´m photographer also) of near all items of the museum, and my girldfriend have the history and documentation (She works as Tourism Agent, and worked for this Museum).

    Now, I´m going to continue developing the mock-up.

    Thank´s again ;-)
  • oxigenowoxigenow Member Posts: 17
    I see clear about the text, but text are long.

    I´ll publish in this post a graphical mock-up of the navigation and content.

    ;-)
Sign In or Register to comment.