game controller compatible?

Blitz3D Forums/Blitz3D Beginners Area/game controller compatible?

Braden(Posted 2008) [#1]
I don't understand how to use the joy command to make my camera move in a direction...

can anyone help?


Braden(Posted 2008) [#2]
well,


;1= the direction of the joy stick
if joydir() = 1 moveEntity camera,.1,0,0
;That would be for left, to use one of the buttons use this code

If joyHit(1) moveentity camera,0,1,0

;this would make the camera move up one if button 1 was presses
;you could also switch joyhit for joydown.
; to find the correct button you can go to game controller under control panal and find the numbers there under your controller's propertys.
;I also found out that the help section in Blitz3d has some nice example for this, you should check this out!

best of luck to you!


Braden(Posted 2008) [#3]
THANKS!


GIB3D(Posted 2008) [#4]
Are you ok sir? You just posted an answer to yourself, and gave best luck to... yourself... and thanked yourself. And you've made lots of threads when you don't.. really... need to :|


Mortiis(Posted 2008) [#5]
lol so we have 2 Braden


Knight #51(Posted 2008) [#6]
If we did have two Braden's, then...that would be really cool :)

[edit] Wait a minuit.....there isn't two bradens :( If there are....then they both have the same signiture :(


GIB3D(Posted 2008) [#7]
I sure hope your learning A LOT Braden ;)


Braden(Posted 2008) [#8]
I AM!!! :)


H. T. U.(Posted 2008) [#9]
What the?! Have you always been wanting to do that or something?