EXTENSION: iPhoneGM (iPhone accelerometer access)
#1
Posted 25 September 2011 - 11:36 PM
Link to GEX: http://imkcreative.c...ml/iphonegm.gex
You can access the x, y, and z of the accelerometer using iphone_acceleration_x(), iphone_acceleration_y(), and iphone_acceleration_z()
Enjoy!
#2
Posted 26 September 2011 - 12:22 AM
#3
Posted 26 September 2011 - 10:16 AM
That ^Would this work on an Android device, as well? If not, it would be neat if you could make it do so!
#4
Posted 26 September 2011 - 03:55 PM
#5
Posted 26 September 2011 - 04:03 PM
#6
Posted 26 September 2011 - 04:06 PM
Why not add the ability to get touches?
The only reason this extension was possible is the fact that window.ondevicemotion passes X, Y, and Z in event. I'm not sure what one would need to do for touch support.
#7
Posted 26 September 2011 - 04:41 PM
#8
Posted 26 September 2011 - 05:20 PM
Touch can simply be done using the mouse events. Or you can use the virtual keys.
Ah, very cool.
By the way, is there a better place for me to be posting my extensions specifically for GML:HTML5?
#9
Posted 26 September 2011 - 06:26 PM
Yeah but that doesn't work with multitouch devices. Well it does, but with only the first touch. The 2nd-4th are completely ignored.Touch can simply be done using the mouse events. Or you can use the virtual keys.
#10
Posted 26 September 2011 - 06:39 PM
#11
Posted 26 September 2011 - 06:43 PM
#12
Posted 22 October 2011 - 07:41 PM
Edited by connorcarpenter, 22 October 2011 - 07:41 PM.
#13
Posted 25 November 2011 - 09:06 PM
AND I am also looking for a way to publish an app to the Android Market that was build with GMHTML5.
I hope to get it released soon.
XverhelstX
EDIT:
Here's a small file that will show a toastmessage on your android device called from within GM:HTML5:
www.rootsoftllc.com/ShowToast.zip
It has a compiled .apk file included too, so you can try it out.
it has an object and when you press the object, a toastmessage appears.
I will try to add much more options if you guys are intrested.
In your gm:html5, you just call ShowToast("message")
Tomas
Edited by XverhelstX, 25 November 2011 - 10:21 PM.
#14
Posted 01 December 2011 - 12:44 AM
Touch can simply be done using the mouse events. Or you can use the virtual keys.
HEY MARK IF YOU COULD GIVE ME SOME INFO HOW TO INSTALL THIS EXTENSION OR HOW TO USE IT AND IF YOU COULD SEND IT TO MY EMAIL MINERALPOLICEJOHN99@GMAIL.COM
#15
Posted 17 January 2012 - 09:11 AM
I saw this..
���N��g������o���*0&o���5&.2l�������r���)���3&&506&!-0030..&3-(.&ݗ����������������j���}g��t���2*0&(.+���&:5&02*0&(.+b���t���2*0& 5����d���}g��t���2*0& 5t���2*0& 5t���������������g���g���g���g���g���g���g���g���g���g���g���g���g���g���g���g���g���g���}g��G���2*0& &-&350 :G���2*0& &-&350 :t���������������g���g���g���g���g���g���g���g���g���g���g���g���g���g���g���g���g���g���}g��G���2*0& &-&350 G���2*0& &-&350 t���������������g���g���g���g���g���g���g���g���g���g���g���g���g���g���g���g���g���g���}g��G���2*0& &-&350 ;G���2*0& &-&350 ;t���������������g���g���g���g���g���g���g���g���g���g���g���g���g���g���g���g���g���g�������x���:]^SZzTwN58~Rvl '4m@Q:@+g'bYcp[<KO!z(P]r=L!]^oeQ?<$}K%B8 3on§
m`I)&y"\͵瀻a[Q?
#16
Posted 18 January 2012 - 10:45 PM
#17
Posted 09 April 2012 - 06:05 PM
dude android is written in java me myself know some javaUnless I'm wrong, I'm pretty sure the accelerometer for Android is not accessible in Javascript. I'm sure someone could work around it with an additional flash or Java applet on the webpage.
#18
Posted 17 April 2012 - 06:39 PM
iphone_acceleration_x(),
iphone_acceleration_y(),
iphone_acceleration_z()
Cuz I am unable to write a single working line of code on my own...
Thanks
I need to move instance of an object left and right by tilting.
#19
Posted 23 April 2012 - 12:13 PM
Just to let you know that I am making an extension where users will be able to access native Android stuff like GPS, accelerometer, bluetooth functions, screen device width etc
AND I am also looking for a way to publish an app to the Android Market that was build with GMHTML5.
I hope to get it released soon.
XverhelstX
EDIT:
Here's a small file that will show a toastmessage on your android device called from within GM:HTML5:
www.rootsoftllc.com/ShowToast.zip
It has a compiled .apk file included too, so you can try it out.
it has an object and when you press the object, a toastmessage appears.
I will try to add much more options if you guys are intrested.
In your gm:html5, you just call ShowToast("message")
Tomas
Yeah I had this problem too then i used this:
I found a way to easily convert your completed app so it is android market compatible
Click Here
Edited by DefuzionGames, 23 April 2012 - 01:06 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











