Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - MrPlow

#1576
Sounds good ... Spacefractal
Is it easy to implement with Androidextras?

#1577
Hi Guys,

I am having problem with my app pausing for android...
When lost focus does the function glb_on_pause fire right away or when I re-focus to it?
My code seem to continue moving objects.

Thks!
#1578
Does that mean I leave the // ?DEFINE ANDROID as it is on the glbstorekit gbas file when compiling for ANDROID?
Or should it be uncommented ??


Quote from: spacefractal on 2014-Jan-02
Im have answear in comply of posts about this one. its a bug in glbasic, which dosent DEFINE ANDROID when compile on Android, so you need doing that your self. Just uncomment ?DEFINE ANDROID, and its should compile on Windows.

If you wont doing that each time between Windows and Android, do something like this (and for other platforms you might uses?):

Code (glbasic) Select

?DEFINE ANDROID
?IFDEF WIN32
?UNDEF ANDROID
?ENDIF
?IFDEF IPHONE
?UNDEF ANDROID
?ENDIF
?IFDEF OSXUNI
?UNDEF ANDROID
?ENDIF


Then the example should work. Im fix that in one of the next versions.
#1579
Yes, signs okay and runs on androids so seems okay in every other sense
#1580
Hi All,

My debug cert expired...but i seen a solution on the web that just said to remove old cert in .android folder and a new one would create...this works but my glbasic_debug.apk is not accepted (inconsistent keys) so I am still using
glbasic_unsigned_release.apk and using that for my builds.

Is this okay to do and is the build exactly the same as the debug one ... would it affect any new code files like androidextras or inapp billing addons?

Any ideas??
#1581
Great thanks Spacefractal ! I will try tomorrow ...
Thanks for the help .... I wish could get my debugging working to give logcat output but my PC doesn't like my new phone

Until tomorrow
Cheers,
Gary
#1582
Thanks Spacefractal,

I'm glad I found out about it before going live...I have amended my controls to accept this.

#1583
Thanks SF,

I do that also - but i just found out its a bug on the Z3 on portrait mode for the x-axis...
I am installing an update and hoping that'll fix it...(*nope* didnt fix - not sure if considered as a bug or just a limitation now)

I usually do a boxcoll with the mouse coords like so...find it neater than all the "if greater than" etc..

Code (glbasic) Select

//within getmousecount loop
IF BOXCOLL(10,shipy+60,70,60,mxx,myy,5,5) AND mb1=1
      shipdir# =  -(2.0*speed*extraspeed)

ELSEIF BOXCOLL(90,shipy+60,70,60,mxx,myy,5,5) AND mb1=1
  shipdir# =  2.0*speed*extraspeed

ENDIF


I dont want to have to use more screen area for my controls...want to have them all on the bottom...
#1584
I have a new acer z3 and it only has 2 point multitouch but its enough for my game but the get mouse routine isn't working as expected.

How should I code it for 2 point touch?

Thks
#1585
Hi me again..!

Sorry for this but I am reluctant to commit my app to FREE status (as there is no way reverse it on Googlestore) without knowing whether  in-app billing is going to work for me or not...

Is there a sample code of

Function inapp_purchase()

         what happens on playstore...?
         does the game pause / resume or open a pop up?


end function


function restrictgame()

if not inapp_purchase()
   
     restrict my game

endif

end function
#1586
Great, thanks

I will try that so...testing is so awkward...
I setup a second gmail account and added it as a alphatester will that work?
#1587

No probs Fuzzy, sorry for the confusion...

Not a lot of randoms in code and i think (or hope!) my game loop is sorta okay ... but think my perf issue is down to stretchsprite and usescreen... plus I am doing a scanline effect on top of that

So looks like I have to stretch my sprites before running or live the current perf....Its not bad now and 30FPS not slick as PC but still good for nexus ... and hopefully for other devices too...

;-)
#1588
I think we are confusing visual speed differences with CPU cycles....

Think of the 300 and 600 values as CPU run cycles (not FPS/loops)

LIMITFPS 30 can run the loop 300 times in 10 secs (as example...)

LIMITFPS 60 can run the loop 600 times in 10 secs

So my RND(x) = y will occur more frequently in the LIMITFPS 60 unless I modify to allow for the extra cycles/loops.

So FPS 60 doubles the run rate in this case...no?

Try it urself with profiler ...
#1589
Are the functions returning 1 for TRUE or 0 for TRUE?....

I was confused with the how to implement...?

#1590
Thanks spacefractal...

Its the google play version...

There is a commented
// ?DEFINE ANDROID
in one of the files is that required??