Graal Forums  

Go Back   Graal Forums > General Forums > Graal Main Forum (English)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-30-2009, 09:15 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by fowlplay4 View Post
- Limit yourself to a screen resolution of 480 by 320
- Make things more mouse driven
- Use if (player.platform == "iphone") where necessary.
Pretty sure iPhone doesn't use anything like mouse controls. Can't the iPhone register multiple touches(more than one mouse)? I have no idea how Graal handles that.

Also, it's been said before but you need to rely heavily on the serverside, so you don't bog down the CPU with clientside loops and processes.
Reply With Quote
  #2  
Old 12-30-2009, 10:36 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by DustyPorViva View Post
Pretty sure iPhone doesn't use anything like mouse controls. Can't the iPhone register multiple touches(more than one mouse)? I have no idea how Graal handles that.

Also, it's been said before but you need to rely heavily on the serverside, so you don't bog down the CPU with clientside loops and processes.
It uses the onMouseDown events in GUIs, and so on. From what I've seen there's no Multi-touch functionality in GS2 to accommodate for it though. Would be nice if there was: onMultiTouch(touchCoords[])

Yeah, that's important too which is why scripts should be event driven as possible. I.e: playerenters, playertouchsme, etc.
__________________
Quote:
Reply With Quote
  #3  
Old 12-30-2009, 11:38 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by fowlplay4 View Post
It uses the onMouseDown events in GUIs, and so on. From what I've seen there's no Multi-touch functionality in GS2 to accommodate for it though. Would be nice if there was: onMultiTouch(touchCoords[])
There's a parameter for which mouse is pressed, GraalControl.onMouseDown(keymod, mx, my, clicks, mouse)
GraalControl.onMouseUp(keymod, mx, my, clicks, mouse)
GraalControl.onMouseDragged(keymod, mx, my, clicks, mouse)
etc

If you press one finger down, mouse will be 1, press a second finger down mouse will be 2, and so on.
Reply With Quote
  #4  
Old 12-31-2009, 02:01 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by salesman View Post
There's a parameter for which mouse is pressed, GraalControl.onMouseDown(keymod, mx, my, clicks, mouse)
GraalControl.onMouseUp(keymod, mx, my, clicks, mouse)
GraalControl.onMouseDragged(keymod, mx, my, clicks, mouse)
etc

If you press one finger down, mouse will be 1, press a second finger down mouse will be 2, and so on.
Thanks for sharing this, released my script demo displaying the multi-touch functionality in the Code Gallery.
__________________
Quote:
Reply With Quote
  #5  
Old 12-31-2009, 12:52 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
Quote:
Originally Posted by fowlplay4 View Post
It uses the onMouseDown events in GUIs, and so on. From what I've seen there's no Multi-touch functionality in GS2 to accommodate for it though. Would be nice if there was: onMultiTouch(touchCoords[])
Sales is correct; I've played around with it before (multi-touch) and it works quite well, though there are some problems when you move two fingers on the screen at once (only one updates).

Yellow dots are fingers:

__________________
Reply With Quote
  #6  
Old 12-31-2009, 01:20 AM
12171217 12171217 is offline
Banned
Join Date: Jan 2009
Posts: 453
12171217 has a spectacular aura about
Quote:
Originally Posted by cbk1994 View Post
Sales is correct; I've played around with it before (multi-touch) and it works quite well, though there are some problems when you move two fingers on the screen at once (only one updates).

Yellow dots are fingers:

You're making me jealous; I want Testbed access on my iPhone!
Reply With Quote
  #7  
Old 12-31-2009, 10:45 AM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by cbk1994 View Post
do u get paid to script instead?? also current era is pretty bad, wat r ur plans to improve it 4 era iphone?
__________________
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 11:05 PM.


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