My last step is adding instrucitons - how to implement a menu?
xyloFUN
Member Posts: 1,593
I am puzzled about the best way to introduce my help menu ....
What I would like to do:
Have a button on the left upper corner that when touched and released will "slide out" a semi transparent panel from the left side of the screen.
Then, on that part the slides out, have additional buttons that navigate the lessons as needed.
Finally, a "hide" button that makes that menu slide out towards the left again.
Any hints or did someone maybe make a tutorial on that?
What I would like to do:
Have a button on the left upper corner that when touched and released will "slide out" a semi transparent panel from the left side of the screen.
Then, on that part the slides out, have additional buttons that navigate the lessons as needed.
Finally, a "hide" button that makes that menu slide out towards the left again.
Any hints or did someone maybe make a tutorial on that?
Comments
In your button in the left upper corner, make this an instance, so you can refer to other actors within the rules. (i.e in it's Actor Editor, click on the padlock). Lets called your other Actor MenuButton. Place this off screen to the right of the screen, with its y coordinate correct. In the left upper corner button Rules, put:
when touch is pressed
Interpolate scene.MenuButton.Position.x to (it's final x position on screen) THen put in the amount of time you want this to happen.
By the way, make sure your menu buttons are shown on the graphic strip. Make transparent actors, the correct size to fit over your graphics buttons and in each of them put the rules such as When touch is pressed Change Scene, etc.; whatever you want the buttons to do.
Back to your upper left button, add to the Rules:
Change attribute scene.firstnewbutton.position.x to (the final x position on the strip on screen)
Change attribute scene.firstnewbutton.position.y to (the final y position on the strip on screen)
Do the same for the other transparent actors' positions (this is still putting in the upper left button's Rules.
I tell you, it's much easier to do than to explain! hope I've made it clear enough for you. :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps