Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-26-2012, 06:34 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Accelerometer data

Is it possible to get the devices accelerometer data?
I'm asking this because i'm wanting to play around with some movement ideas for iDevices.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #2  
Old 12-26-2012, 07:45 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
It's possible but I can't find the post Stefan made about it...

edit: found it with Tig's help,

This thread has some information you need:
http://forums.graalonline.com/forums...hp?t=134261580

and here's Stefan's post:
Quote:
Originally Posted by Stefan View Post
There is getAcceleratorAxis(0 or 1 or 2), can be used like this:

PHP Code:
xaxis = -(getangle(getAcceleratorAxis(0), getAcceleratorAxis(1)) - pi);
yaxis getAcceleratorAxis(2); 
__________________

Last edited by cbk1994; 12-26-2012 at 07:59 AM..
Reply With Quote
  #3  
Old 12-26-2012, 12:50 PM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Ahh thanks a tonne
Is there any way to send a native alert to the device too?
There's a few things I'm wanting to try.
Now I can finally play around with accelerometer stuff
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #4  
Old 12-26-2012, 02:30 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Gunderak View Post
Is there any way to send a native alert to the device too?
If Stefan thinks you need push notifications, I imagine he'll help you out with that when the time comes.
__________________
Reply With Quote
  #5  
Old 12-26-2012, 03:06 PM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
I meant alert as in the native ones.
And this is being tested on Delteria, so i'd imagine we'd be getting push notifications eventually lol.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #6  
Old 12-29-2012, 01:24 AM
mewtoo18 mewtoo18 is offline
Registered User
Join Date: Sep 2003
Location: Southbend IN
Posts: 41
mewtoo18 is on a distinguished road
That's pretty neat, do other iphone servers use the Accelerometer? I have not seen this.
Reply With Quote
  #7  
Old 12-29-2012, 08:32 AM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
Quote:
Originally Posted by mewtoo18 View Post
That's pretty neat, do other iphone servers use the Accelerometer? I have not seen this.
No iServer as of yet makes use of the accelerometer and of good reason to. iServer's are entwined with facebook, computers obviously not having this(as far as i'm aware... could be a wii thing or something somewhere), would need a compensated means of input which ultimately means more work for whoever's developing which i'm sure not too many people are a fan of (especially if it can be avoided).
__________________
Quote:
Originally Posted by Crono View Post
No look at it, Stefan is totally trolling Thor. Calling Classic a "playerworld" (something it's not supposed to be) is the ultimate subtle insult to a true fan.

It's genius.
Reply With Quote
  #8  
Old 12-29-2012, 09:04 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by Tricxta View Post
No iServer as of yet makes use of the accelerometer and of good reason to. iServer's are entwined with facebook, computers obviously not having this(as far as i'm aware... could be a wii thing or something somewhere), would need a compensated means of input which ultimately means more work for whoever's developing which i'm sure not too many people are a fan of (especially if it can be avoided).
we use on era for skateboards. I think we're making motorbikes use it too
__________________
Reply With Quote
  #9  
Old 12-29-2012, 11:51 AM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
Quote:
Originally Posted by xAndrewx View Post
we use on era for skateboards. I think we're making motorbikes use it too
Oh woops, I forgot that but it's no major game changer, just a kick flip. Wouldn't it be advisable not to use it for anything big for the reasons I stated above?
__________________
Quote:
Originally Posted by Crono View Post
No look at it, Stefan is totally trolling Thor. Calling Classic a "playerworld" (something it's not supposed to be) is the ultimate subtle insult to a true fan.

It's genius.
Reply With Quote
  #10  
Old 12-29-2012, 12:17 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
we're going to try it
I'll keep you posted I'll ask your help with the complex math part haha
__________________
Reply With Quote
  #11  
Old 12-29-2012, 04:47 PM
BlueMelon BlueMelon is offline
asdfg
BlueMelon's Avatar
Join Date: Sep 2008
Posts: 1,481
BlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to behold
Could always just use the keyboard for facebook movement
__________________
http://i.imgur.com/OOJbW.jpg
Reply With Quote
  #12  
Old 12-29-2012, 07:26 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Gunderak View Post
Ahh thanks a tonne
Is there any way to send a native alert to the device too?
Nope.
__________________
Skyld
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:23 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.