Mouse Controlled Movement
by Robert Stewart · in Torque Game Engine · 10/20/2004 (7:28 pm) · 5 replies
Sorry i reposted this in here just incase "Disscusion" wasent the right place for it. Anyway here is my topic.
Well, im new to tourqe just got this today, here is my question.
I cannot get the resource "Object selection in Torque" to work for the latest stable release of tourqe, i compile fine, i use printf for mousedown and it works when i click the screen, so problem must be somewere else/past step 2 in that resource? if anyone has this working i could use some help, and when i get this working i would like to use mouse controlled movements resource, if you could help me with that also? sorry its just both resources are so old compared to this version of tourqe, thanks for any help. bye
EDIT: for people wondering what this has to do with topic, i need "Object selection in Torque" resource to work before i can get "Mouse Controlled movement" resource to work i think?. thanks again
Well, im new to tourqe just got this today, here is my question.
I cannot get the resource "Object selection in Torque" to work for the latest stable release of tourqe, i compile fine, i use printf for mousedown and it works when i click the screen, so problem must be somewere else/past step 2 in that resource? if anyone has this working i could use some help, and when i get this working i would like to use mouse controlled movements resource, if you could help me with that also? sorry its just both resources are so old compared to this version of tourqe, thanks for any help. bye
EDIT: for people wondering what this has to do with topic, i need "Object selection in Torque" resource to work before i can get "Mouse Controlled movement" resource to work i think?. thanks again
About the author
#2
10/20/2004 (7:43 pm)
Yes, i did all that and checked through really good, i still cant select anything, but mousedown as mentioned is been called, thanks for quik reply, and i hope i get this working soon.
#3
I wasn't interested in clicking on objects though. Like you, I wanted to click on the world. So I just added the new OnMouseDown code anyway. To verify the clicks were being registered, I spawned an explosion... and lo and behold, the explosions occured exacly where I clicked in the world!
10/20/2004 (7:50 pm)
Well, clicking is kind of wanky. The hitbox doesn't seem to be very big for most things, and I could only select certain objects (I don't think I was ever able to click on a weapon or ammo). Clicking on the bot worked fine though.I wasn't interested in clicking on objects though. Like you, I wanted to click on the world. So I just added the new OnMouseDown code anyway. To verify the clicks were being registered, I spawned an explosion... and lo and behold, the explosions occured exacly where I clicked in the world!
#4
Edit: so if someone can help me to get "Mouse controlled movement" to work with "Click n Play" Resource, it would help allot, thanks
10/20/2004 (7:51 pm)
Sorry i should have said this first, i could probraly get Click n Play to work, but Mouse Controlled Movement is built off of "Object Selection" resourceEdit: so if someone can help me to get "Mouse controlled movement" to work with "Click n Play" Resource, it would help allot, thanks
#5
Edit: it still dosent work even on bot
10/20/2004 (7:53 pm)
Well i tried clicking on the Bot, just to clarify. thanks though.Edit: it still dosent work even on bot
Torque Owner Randall
It was mostly the "´" crap that was screwing mine up, but there were a couple other changes I had to make as well.