Forums » Questions and answers »
control game players from vastpark server
Added by Tiffan Teofano 12 months ago
Hi, its me again,
now its about rotation of the canon, I am currently increasing or decreasing the value of y for up and down movement, and value of z for clockwise and anticlockwise rotation.
well it works for y direction as it is not fully rotating, but because my bullet should always fire to where the canon is facing, when it is pointing to between x and z direction, I cant get the bullet to fire to that direction,I tried to decrease the z position as it moves,still can do well when decreased to a very minimum value of z axis.
I believe there should be a good way to do this vast script.
any thought or some similar example done before!
Thank you
Replies (4)
RE: rotation
-
Added by Tiffan Teofano 12 months ago
oops!
sorry, title mismatch on the above post, that is the later question after I have struggled by myself.
Thank you
bullet direction
-
Added by Tiffan Teofano 11 months ago
still haven't been able to solve the above posted question about moving bullet to either direction in vastscript, I got stuck as that is the core part of the game.
heelp!
RE: control game players from vastpark server
-
Added by Craig Presti 11 months ago
I've written up a sample for you, see attached.
Try clicking on the black box to shoot, you can also click and drag the box on the x axis to see it work at different angles. Try changing the parameter value to RotationY or RotationZ to see it function at different angles, I think it should work ok although I did not test.
Let me know if you have questions :)
cannon-sample.imml (2 kB)
RE: control game players from vastpark server
-
Added by Tiffan Teofano 11 months ago
Thanks Craig,
I will play with it.
(1-4/4)