Hey Vplay people,
I’ve been playing around with the multiresolution asset generator, but it is mainly targeted to animations.
And after the spritesheet is generated there is no other way than the programatic way to know the size of the frames.
What if i want to have an spritesheet for any king of images besides animations, there is no clear way (if not documented).
What i think is best to deal with this, the spritesheet should have some kind of .json/xml metadata file, to get the specified image in a multiresolution independent way.
spritesheet{
name:”image.png”,
children:[
{
“name”:”background”,
“sd_rect”:[10,10,20,20],
“hd_rect”:[10,10,25,25],
“hd2_rect”:[10,10,35,35]
}
]
}
And then
ImageButton
{
imageSource: spritesheet.get("background")
}
I think spritesheet should be that flexible. If there is a way to do it right now, let me know.
And that implementation could give some flexibility, to the AnimatedSprites too
- This topic was modified 10 years, 1 month ago by Christian.