Link to a layer?
guru-at-zidware
Member Posts: 369
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
`
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.
EDIT: DAMN YOU TSB!!! Beaten AGAIN!!!
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
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"
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..??