| View previous topic :: View next topic |
| Author |
Message |
ddddddddd
Joined: 11 Jul 2007 Posts: 13
Digg It |
Posted: Sat Jul 14, 2007 9:33 pm Post subject: Help i wont to hold "B" and move the corsor |
|
|
| Hi i wanted to put in bit a script when you hold the B button and you can move the cursor around the screen with the direction pad, so the direction pad buttons would have two functions one as normal and one when you press the B button. |
|
| Back to top |
|
 |
TiagoTiago
Joined: 20 Jan 2007 Posts: 710 Location: Brasil
Digg It |
Posted: Sat Jul 14, 2007 11:49 pm Post subject: |
|
|
that doesn't seem like it would be hard to do... _________________ please put the scripts on the wiki so they dont get lost as new stuff is posted!
phpBB doesnt like me,somtimes it will forget to warn me about new replies to threads I asked it to,if you see a thread I should have responded, could please email me? |
|
| Back to top |
|
 |
fortunzfavor

Joined: 13 Jun 2007 Posts: 95
Digg It |
Posted: Sun Jul 15, 2007 12:57 am Post subject: |
|
|
| it's not, though I'm sure it could be done better. |
|
| Back to top |
|
 |
ddddddddd
Joined: 11 Jul 2007 Posts: 13
Digg It |
Posted: Wed Jul 18, 2007 8:30 am Post subject: |
|
|
| thanks |
|
| Back to top |
|
 |
unreal2k8
Joined: 17 Jul 2007 Posts: 3
Digg It |
Posted: Wed Jul 18, 2007 9:00 am Post subject: |
|
|
| thanks i used a bit of your script and used it in my resident evil script |
|
| Back to top |
|
 |
ryandapimp913
Joined: 11 May 2008 Posts: 2
Digg It |
Posted: Mon May 12, 2008 3:02 am Post subject: Here it is. |
|
|
Wiimote mouse, an answer to you problem.
| Code: |
//Ryan's wiimote d-pad lock mouse
if wiimote.Exists then
if wiimote.B then
if wiimote.Left = true then
cursor1.x = cursor1.x - 2pixels
else
cursor1.x = cursor1.x
endif
if wiimote.Up = true then
cursor1.y = cursor1.y - 2pixels
else
cursor1.y = cursor1.y
endif
if wiimote.Right = true then
cursor1.x = cursor1.x + 2pixels
else
cursor1.x = cursor1.x
endif
if wiimote.Down = true then
cursor1.y = cursor1.y + 2pixels
else
cursor1.y = cursor1.y
endif
endif
endif
|
I don't have my bluetooth dongle yet, but if my programing expertise are correct, this should be what you requested. |
|
| Back to top |
|
 |
|