Just a Resource comparison question.
I am making a Menu.
What is faster, making each button move to a new Layout. Or changing the Layout on Button Pressed ?
Edit: I would think Making new Layouts if Faster and Better because then i don't have to import so many Sprites for every Button
H???? <img src="smileys/smiley5.gif" border="0" align="middle" />
I make a Menu.
If you press a Button, it will move you to another Menu Screen.
Better with Layout per Menu Screen and (move to layout) or by changing the layout by for example Make visible / invisible or Move stuff arround
I think it's easier and even "faster" to just change Layouts - that's what they are for
Better for you than changing layout would be to make one big layout with seperate windows menu and then just scroll around the layout...but it's still a crazy idea :D
but for menus there are a lot of options. For example make sprite with different frames setups - frame 1 - help, frame 2 - exit...
You could even make objects visible/invisible depends on their actual state. But changing layout it's not a good idea.
Ok :p
Changing Layout = Bad and Good... xD
There's no problem in recreating the GUI objects on each layout.
Oh yeah i know :p
That's the point, with different layouts i might be able to reuse more Sprites.
But i was not sure if changing the layout or something else is best for the performance.
Develop games in your browser. Powerful, performant & highly capable.
It's up to you, neither is faster/slower, but you might find it more convenient to use different layouts.
Hm.. and why should i belive you?
lol JK<img src="smileys/smiley17.gif" border="0" align="middle" />
Allright Solved i think :)
I decided to use both btw. Since i have a inventory <- Visible / invisible
And i have Menu <- Layouts