Creating buttons
ShaunRasulov@y7mail.com
Member Posts: 20
hi All,
I was wondering what the best way is to create buttons? I will have many buttons in my game, so was wondering if there is an easier way than creating new scenes?
Cheers,
SR
I was wondering what the best way is to create buttons? I will have many buttons in my game, so was wondering if there is an easier way than creating new scenes?
Cheers,
SR
Comments
Click the Actors Tab.
Click the "+" arrow at the bottom of the Window.
Name Actor Button.
Put rules in actor that react to touch.
Congrats... you have a button.
If those buttons essentially do the same thing and only differ by say, having a different value for an Attribute, then you might want to read up on the Actor Prototype concept of GS. This'll save you a load of time ie. you won't have to program the same Rules over and over again.
If you're talking about formatting your button Actors in a Single scene, well it's going to be a slightly more difficult dilemma to solve, not to mention varied / a case-to-case basis. Besides aesthetics (eg. making everything look nice and not too cluttered), you might want to consider functionality (eg. would it be wiser to place directional-pad buttons to the bottom-left of the screen, or should there be an option for the user to relocate it as necessary).
If I misunderstood your question, kindly say so and my apologies in advance.
thanks again