I've also tried out switching scenes. For example, main menu to level select and so on.
I followed this tutorial : http://www.youtube.com/watch?v=IyoEB7qG35I
As usual, create my images first, in this case I created two buttons. One for normal view and the other is when the button is selected.
After that, I make the button as an actor,
Then, I need to code in puzzle blocks :
This code is for when mouse is clicked down.
I've created an attribute as a scene to be included into the code:
And when button is clicked down using the mouse, this code is the transition to the next scene:
And this code is for the click effect when button is clicked :
After that, I go back to my dashboard and select the scene tab to place my button into the scene:
Then back to the dashboard to mark which scene is the starting scene :
Here's my try out on switching scenes :
Thursday, 19 September 2013
0 comments: