Welcome Guest [Log In] [Register]
Welcome to Brackenwood. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Hey everybody!; "HEY DOCTOR JUGGS"
Topic Started: Mar 13 2006, 10:22 PM (164 Views)
juggleballz
Member Avatar
I'm loose, full of juice and ready for use!
Ahem, morning Codeheads, Juggs is back with another coding conundrum.

to vector: Hey man, remember the touch screen thing i was working on whereby the cursor in fact is a large image of my hand, (where the cursor is centralzed in the palm) and the letters a,s,d,f were the keys u press to correspond to the different fingers.

Well i am wondering if it is possible to have each finger work as if u have clicked the mouse. what i mean is, even though the mouse cursor is centralised to the palm of the hand, and the fingers are the interacting points, is it possible that the fingers can press buttons, rather than the cursor?

Click here to refresh your memory

so the coding mission is to make each finger a cursor...

Daniel, if u can help me again i will be ur eternal slave and if anyone else can help me i would much appreciate it.!

gotta love u nerds! :lol: just kidding ;) im one too but not with code lol.
Offline Profile Quote Post Goto Top
 
Krob
Brackenwood Lightweight
all you have to do is check if the fingertip "hits" the button

if that is true AND you click, then you can execute the code you want to be executed when the button is pressed (i dont really know how to check if the mouse button is pressed without an onPress event so i'll let some more experienced guys give some examples ;) )

another hacky way to do this is make invisible buttons positioned so that when the fingertip of the hand gets on the visible button, the mouse is actually on the invisible button
Offline Profile Quote Post Goto Top
 
smoscar_01
Member Avatar
Mid-Level ActionScripter
something like this krob :P

Code:
 

if (pressok == true && Key.isDown(String("a").charCodeAt(0))){
  //some statements
}
_root.onEnterFrame=function(){
  buttonx = mybutton._x;
  buttony = mybutton._y;
  if (buttonx == (_xmouse - 67) && buttony == (_ymouse - 55))
     pressok=true;
  else
     pressok=false;
}


I took the 67 and 55 constants from Mr. Jiggmin's previous post and its just for one finger :P
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Actionscript · Next Topic »
Add Reply