Posted By
|
Message
|
lembi2001
Registered 01/04/2005
Points 608
|
21st August, 2006 at 05:47:30 -
I want to use the right analog stick to control the direction my ship fires. I have managed to get it to turn in the right direction using Joypad Object and Advanced Direction Object using the following code:
Direction( "Advanced Direction Object", 32767, 32767, RawR( "Joypad object", 1 ), RawZ( "Joypad object", 1 ) ) / 11
I don't want to have to press a button to start the bullets flying i just want the bullets to fly when i move the analog stick in the right direction.
n/a
|
lembi2001
Registered 01/04/2005
Points 608
|
21st August, 2006 at 07:04:12 -
That really helped me cheers phizzy. but now i cannot fire when facing right. it also stops firing at random. is there anyway to put in a dely for the bullets as they might as well just be bar pointing out of the ship at the minute. this is the event i have setup:
+RawR("Joypad object",1) <> 32767
+RawZ("Joypad object",1) <> 32767
Toggle Flag (Ship) 0
+(Ship) Internal Flag 0 is On
Have Ship shoot bullet at 50 using direction of ship
Hope that makes sense
n/a
|
lembi2001
Registered 01/04/2005
Points 608
|
21st August, 2006 at 11:08:29 -
phizzy you are a genius!!!!!
n/a
|
lembi2001
Registered 01/04/2005
Points 608
|
21st August, 2006 at 16:51:06 -
yes. the game is coming along nicely now. gonna upload a time limited demo soon
n/a
|
|
|