Can this be done? or maybe something like a 9patch behavior for the sprite object?
This would be really helpful for me, so if you can help, let me know
sorry for the double post but Ashley I just noticed I can't change the 9patch properties on runtime, is there no way to do that either?
edubrrx
I am not quite sure what you mean by "frames" but I made a 9-patch example for someone recently to select units in a game. It has a thin frame and transparent middle. It might be along the lines of what you are wanting...
basically, you set the margins to the thickness of the frame you want, then you can have as fancy of a frame as you want. (you may have to set the edges to Tile if Stretch makes it look bad)
http://www.rieperts.com/games/forum/Starcraft_map.capx
edubrrx I am not quite sure what you mean by "frames" but I made a 9-patch example for someone recently to select units in a game. It has a thin frame and transparent middle. It might be along the lines of what you are wanting... http://www.rieperts.com/games/forum/Starcraft_map.capx
I was actually talking about making the 9patch object having animation frames, but thanks for the help
ohhhh, I see... yeah - that could be nice to have.
Develop games in your browser. Powerful, performant & highly capable.
Short answer: nope
Long answer: nnnnnoooooppppeeee.
9patch uses elements like tiled bg which is a repeating texture, and would not work well with frames.
You can fake it with sprites, but it would be significantly less efficient than 9patch.
Short answer: nope Long answer: nnnnnoooooppppeeee. 9patch uses elements like tiled bg which is a repeating texture, and would not work well with frames. You can fake it with sprites, but it would be significantly less efficient than 9patch.
Do you know if we can atleast add an action to change a property of the 9patch object?
Probably, in the sdk.
Scirra is a bit critical of modding official plugs, but it's there as a template.
thanks