I just did a tutorial on getting a third-person camera and allowing WASD movement and I'm having a little problem.
I followed the tutorial to the point and when I go to test my map, the unit I have placed is not affected by the movement controls nor is my camera put into third-person.
When I look at the Trigger Debugging there are no reporting failures or errors or anything like that and the events for pressing and releasing the keys seem to be registering properly, however its just not working.
I can post up all my triggers and stuff but I'd prefer not to if it can be fixed without you guys seeing that, because it is a lot to copy and paste, lol.
Well, we dont magically know your triggers. Its like saying "Help, my watch is broken, but I dont tell you which watch it is". How about a link to the tutorial you did?
Even the tutorial won't help there, as we still won't know at which point you made a mistake.
You only have two choices:
1: Post a detailed explanations here with exact problem description and exactly what your problem does (this way we might be able to guess)
2: Post your map (this way we can find it for sure)
Sorry I haven't been around, I have been busy past couple of days. Here is the map that has the camera/movement triggers. Hopefully this will help you guys because I'm not that experienced with trigger editing and I am using opportunities like these and the tutorials to help me learn how to do stuff.
Alright you have done a couple of small mistakes in there, I hope I remember them correctly:
1st: You have to call the function "setThirdPersonCamera" to start the third person view. (You made that function in the course of the tutorial somewhere).
The right line would look something like that:
setThirdPersonCamera(1, Marine [36.79, 108.32])
This would activate 3rd person camera for player 1, following the Marine [.......] guy.
You can access this function by adding an action to a trigger and search in the category "-General"
2nd: There is an error in setThirdPersonCamera.
The faulty line:
Variable - Set camUnit[0] = Unit
this should actually be:
Variable - Set camUnit[P] = Unit
With an array index of 0 it will not give you any errors, but your cam system won't find the unit because there is no player 0.
After these two changes it will work, but the movement directions are messed up a little.
I suggest you re-do the part where you set-up the movement directions in "updateMovement", because a lot of them are wrong (e.g. if I press S the hero moves to the left instead of backwards).
I just did a tutorial on getting a third-person camera and allowing WASD movement and I'm having a little problem.
I followed the tutorial to the point and when I go to test my map, the unit I have placed is not affected by the movement controls nor is my camera put into third-person.
When I look at the Trigger Debugging there are no reporting failures or errors or anything like that and the events for pressing and releasing the keys seem to be registering properly, however its just not working.
I can post up all my triggers and stuff but I'd prefer not to if it can be fixed without you guys seeing that, because it is a lot to copy and paste, lol.
Thanks!
Well, we dont magically know your triggers. Its like saying "Help, my watch is broken, but I dont tell you which watch it is". How about a link to the tutorial you did?
Even the tutorial won't help there, as we still won't know at which point you made a mistake.
You only have two choices:
1: Post a detailed explanations here with exact problem description and exactly what your problem does (this way we might be able to guess)
2: Post your map (this way we can find it for sure)
Sorry I haven't been around, I have been busy past couple of days. Here is the map that has the camera/movement triggers. Hopefully this will help you guys because I'm not that experienced with trigger editing and I am using opportunities like these and the tutorials to help me learn how to do stuff.
Thanks.
Alright you have done a couple of small mistakes in there, I hope I remember them correctly:
1st: You have to call the function "setThirdPersonCamera" to start the third person view. (You made that function in the course of the tutorial somewhere).
The right line would look something like that:
setThirdPersonCamera(1, Marine [36.79, 108.32])
This would activate 3rd person camera for player 1, following the Marine [.......] guy.
You can access this function by adding an action to a trigger and search in the category "-General"
2nd: There is an error in setThirdPersonCamera.
The faulty line:
Variable - Set camUnit[0] = Unit
this should actually be:
Variable - Set camUnit[P] = Unit
With an array index of 0 it will not give you any errors, but your cam system won't find the unit because there is no player 0.
After these two changes it will work, but the movement directions are messed up a little.
I suggest you re-do the part where you set-up the movement directions in "updateMovement", because a lot of them are wrong (e.g. if I press S the hero moves to the left instead of backwards).