Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Accelerometer data (https://forums.graalonline.com/forums/showthread.php?t=134267648)

Gunderak 12-26-2012 06:34 AM

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.

cbk1994 12-26-2012 07:45 AM

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 (Post 1548076)
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); 



Gunderak 12-26-2012 12:50 PM

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 :D

cbk1994 12-26-2012 02:30 PM

Quote:

Originally Posted by Gunderak (Post 1710617)
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.

Gunderak 12-26-2012 03:06 PM

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.

mewtoo18 12-29-2012 01:24 AM

That's pretty neat, do other iphone servers use the Accelerometer? I have not seen this.

Tricxta 12-29-2012 08:32 AM

Quote:

Originally Posted by mewtoo18 (Post 1710962)
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).

xAndrewx 12-29-2012 09:04 AM

Quote:

Originally Posted by Tricxta (Post 1711043)
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

Tricxta 12-29-2012 11:51 AM

Quote:

Originally Posted by xAndrewx (Post 1711045)
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?

xAndrewx 12-29-2012 12:17 PM

we're going to try it :D
I'll keep you posted :) I'll ask your help with the complex math part haha

BlueMelon 12-29-2012 04:47 PM

Could always just use the keyboard for facebook movement

Skyld 12-29-2012 07:26 PM

Quote:

Originally Posted by Gunderak (Post 1710617)
Ahh thanks a tonne :)
Is there any way to send a native alert to the device too?

Nope.


All times are GMT +2. The time now is 07:44 PM.

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