Showing posts with label input. Show all posts
Showing posts with label input. Show all posts

Wednesday, 30 January 2013

#4.2 Tutorial (LibGDX & MTX) Test_08_SmartModels


This is where thing gets exiting. SmartModel is designed for and easy life for LibGDX Scene2D and Live Wallpaper developers. Lets talk about it.

















#4.1 Tutorial (LibGDX & MTX) Test_07_EffectCreator


Time to move on to fun stuff like effects. Effects are simply combination of Scene2D Actions. In order to prevent code duplication in everywhere. I collected useful effects under EffectCreator class, you can create effects in a single line of code and dispose them from stage if you want. It is very convenient and useful. Everything is so fast and easy to use.

















Tuesday, 29 January 2013

#3.7 Tutorial (LibGDX & MTX) Test_06_CollisionDetection



Some developers may need collision detection for actors.

 
















#3.6 Tutorial (LibGDX & MTX) Test_05_InputIntent 2


What if I just need to detect swipe intentions not minor drags on the screen. The very simple solution is again InputIntent class.

FOR EXAMPLE: When you get notification center in android, you need to drag abit longer, nut just minor drags like 4-5 pixels.

















#3.5 Tutorial (LibGDX & MTX) Test_04_InputIntent 1


Sometimes we need to detect drag direction of user (without removing finger off the screen or vice-versa), Also we may need to detect which area of the screen being touched at the moment. The solution is InputIntent Class, extremely easy to use.