1
Support / How can i create HUD movement buttons?
« on: July 19, 2013, 02:55:39 am »
Hey guys, i am really new to Unity and 2D Toolkit as well.
I have read "all" the 2.1/2.0 documentation.
I'm making a 2D Platformer game for mobile devices, and i already have all the animations of my Character working.
I'm using tk2dcamera and a resolution of 800x480 (landscape).
I'm about to start the movement of my character, but i'm a little lost in this part... How can i add movement buttons (an arrow and a button to jump, for example) to my game?
Is this just a sprite like any other sprite in the scene? If so, how can i detect that i pressed the button to jump?
Or should i use 2D Tookit UI to create these buttons and use the Events to track what button do i pressed?
And sorry about my english, it's not my native language.
Thanks.
I have read "all" the 2.1/2.0 documentation.
I'm making a 2D Platformer game for mobile devices, and i already have all the animations of my Character working.
I'm using tk2dcamera and a resolution of 800x480 (landscape).
I'm about to start the movement of my character, but i'm a little lost in this part... How can i add movement buttons (an arrow and a button to jump, for example) to my game?
Is this just a sprite like any other sprite in the scene? If so, how can i detect that i pressed the button to jump?
Or should i use 2D Tookit UI to create these buttons and use the Events to track what button do i pressed?
And sorry about my english, it's not my native language.
Thanks.