Android Tutorial GameView - Create 2D Android games - Part I

Carcas

Member
Licensed User
Longtime User
Initially I thought it was my device

I did a lot of tests on my device (debug/release)

if I do not put in the timer loop this:

B4X:
lblFPS.Text = NumberFormat(fps, 0, 0)

the movement is not fluid. it was very strange.

if i put this

B4X:
lblFPS.Text = "test"

is nice

if i put this

B4X:
lblFPS.Text = ""

is bad

On samsung S2 some problem
 
Last edited:

Carcas

Member
Licensed User
Longtime User
without label does not work

Also the speed changes.

ultimately if I remove the label FPS from the exampleSmile does not work
 

robots4life

New Member
I just had a question before I purchase this software. If I were to use gameview instead of imageviews, would it increase the speed of the game if the pictures loaded changed every tick rather then having them rotate/move the same picture each time as you showed in these examples?
 

sterlingy

Active Member
Licensed User
Longtime User
You should look at the lib libGDX. If you are new to b4a, you might find the learning curve a bit high, but once you get into it, you'll find it quite easy, and speed is not an issue.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…