Link to a layer?

guru-at-zidwareguru-at-zidware Member Posts: 369
edited November -1 in Working with GS (Mac)
hi....I love the change image command but I want to select from 10 images? Is there a way to to link to a layer? So I would have a different image/animation on each layer...and want to select from the top layer..like a deck of cards....not sure if it is possible?

Comments

  • BeyondtheTechBeyondtheTech Member Posts: 809
    Use the trick that was posted here before.

    `
    Change Attribute: game.ImageNamePrefix = "image_"
    Change Attribute: game.ImageNameSuffix = ".png"

    Change Attribute: self.Image = game.ImageNamePrefix .. self.ImageNumber .. game.ImageNameSuffix
    `
    Instantly builds the filename and sets the image to what you need. Just name your files "image_0.png" "image_1.png" "image_2.png" and so on...

    EDIT: Aaaah, TSB strikes again with lightning speed.
  • quantumsheepquantumsheep Member Posts: 8,188
    Maybe you could have a feature when posting a yellow bar pops up if someone else is posting at the same time?

    EDIT: DAMN YOU TSB!!! Beaten AGAIN!!!

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • guru-at-zidwareguru-at-zidware Member Posts: 369
    hmm......maybe not. Here is a quick template of what I was thinking.

    http://gamesalad.com/game/play/50980

    each perceived image (selectable from a tab) is on it's own layer with anims or whatever. like a deck of cards, the user can see clearly the navigation. each layer is "rich"
  • guru-at-zidwareguru-at-zidware Member Posts: 369
    hi...ok I posted the revised work file here...

    http://gamesalad.com/game/play/50980

    kinda works but as you will see the animated actor has an instance on each folder. yet in one tab selection it appears twice. also it would nice if you could toggle layers (on/off) for editing?

    have a look...I think it could be a nice way to move through levels in a game without changing scenes? no spinny thing..??
Sign In or Register to comment.