Tutorial: Scrolling background in Corona SDK


Today I’m gonna talk about a scrolling background in Corona SDK. I’m sure you’ve seen this effect in many games and most likely the time has come to implement it in your own one. So, how is this being done?

The first question that might be asked is How many images do I need? The answer is – as many as you wish. I’ve chosen 1, because it’s super easy and fast – there is exactly one graphics and it’s enough.

The second question is In which direction it should scroll? It can be any direction, really, but this tutorial focuses on a vertical top > bottom scrolling. It’s like we’ve been flying higher and higher in sky.
Continue reading Tutorial: Scrolling background in Corona SDK

Like and share:

Tutorial: Nexus 5 ADB driver install

Hi, guys!

Today I’m gonna tell you how to deal with Nexus 5 and its driver issues with ADB. I have experienced this by myself (wasn’t able to deploy my app because ADB didn’t see my Nexus 5) and it is quite an unpleasant situation, as instead of debugging apps you have to stick for maybe 2h of troubleshooting and connecting/disconnecting the device.

This tutorial’s solution is for Windows only. See this link for Linux and Mac configuration.

Here I will actually provide a few solutions – from the easiest and most obvious ones to those more complicated and time-consuming. The best approach is to go from one to another, sequentially. This way you won’t unnecessary waste time if the problem is in USB debugging, for instance 🙂 So, lets begin!
Continue reading Tutorial: Nexus 5 ADB driver install

Like and share:

Tutorial: PIN input view in Android

Hi, guys!

Today’s post will be about PIN-like view in Android. I’m sure that many Android developers would like to have it by default, me included. And so I wanted to show you how I handled the problem caused by lack of such view. But first, how should it look like? Well, it should like an input field where every character has it’s own box and while typing, characters should automatically populate those boxes. Sounds pretty easy, isn’t it? But later, when you think about all of the aspects, you will realize it’s not that simple at all…

First, I wanted to mention that this particular example is for text passwords (or text pin). The code for just numerical PIN view would be much easier. But it wasn’t the case with the app I was writing and I definitely needed the default keyboard. Because I could change my soft keyboard from text to numerical at any point of typing, I couldn’t have a collection of EditTexts because switching from one to another would have changed a keyboard either to text or numerical and I didn’t want that.
Continue reading Tutorial: PIN input view in Android

Like and share:

Tutorial: ActionBarSherlock Tabs + ViewPager + ListFragment (with tab listeners and more…)

Hi, everybody!

Today I gonna post more complex tutorial which will cover ActionBarSherlock tabs combined with ListFragment as a tab content and a ViewPager for a better user experience (this tutorial assumes that you have a basic knowledge of these classes as well as ActionBarSherlock library).

In order to begin, we need to download ActionBarSherlock library. After the download, I suggest to create a folder for our project (you can name it TabsWithViewPager) and place the extracted ActionBarSherlock’s library content in it (without a test folder as we don’t need it). Now, create an Android project with a package name com.lomza.tabs_view_pager, minimum sdk version set to 8 and target sdk version set to 17, and name the project TabsWithViewPagerProject. Also, add a class titled MainActivity which will extend SherlockFragmentActivity and override the onCreate(Bundle savedInstanceState) method. Place the project in our TabsWithViewPager folder. To this point, you should have two folders in TabsWithViewPager folder: library and TabsWithViewPagerProject.
Continue reading Tutorial: ActionBarSherlock Tabs + ViewPager + ListFragment (with tab listeners and more…)

Like and share: