Hey,
I followed some of makinom tutorials to learning the basics of Makinom and Ork, I focused in
survival shooter tutorial and tried to adapt to another characters, but I found some doubts and question.
In player movement schematic, I would like the player rotates with the right stick of the joystick, how I can to do it?... I see I must change the Rotate To node and change rotation target, but i only can select GameObject, Position and Mouse Position.
In player shooting I would like to shoot another prefab, particles and, let the player select differents guns with differents damages and shooting styles, any idea on how I must do it?
You can use the axis of an input key as value via Input > Input Key Axis in float value selections, so use that to set the axes of the Vector3 variable.
With that, you have the direction of the input - now add the player/game object's position to it and you have the position you can rotate to.
As for different guns, there are multiple ways to do it.
One way would be to have the whole shooting mechanic as part of the guns - i.e. switching out the gun's game object will automatically change the handling, prefabs, etc.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
And in this case how I must do the schematic?, I added the Change variables node, here I must store the Vector3 variable, and in Directional Input Node, I must select the player or Machine Object? I show a screenshot of the schematic I tried to create:
https://imgur.com/a/J6cS0y6
You're using Change Variables to store the values from the inputs and add the position of the player to it. This gives you the position you'll use in the Rotate To node.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
https://imgur.com/a/gqpCRMQ
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I added the Change variables node before of Rotate To I don´t know if the Change variables must add just after the settings node or after the Move node
Here I post a screenshot of the nodes settings
https://imgur.com/a/0DysBsC
Change Variables
- you didn't select an input key for the Z-Axis
- I'd also recommend using Local variable origin
- add another variable change to the node that adds the machine object's position to the RotateAxis variable (via Game Object > Game Object) Vector3 type as value)
Rotate To
- you don't use the same variable origin as in the Change Variables node for the RotateAxis variable
- I'd recommend to use Local origin in both nodes
Also, it's probably better to use the Rotate To node before the Move node.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
https://imgur.com/a/GXcTbyt
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I don´t know if it could be the input axis settings, I set up Horizontal axis (4th Joystick axis) and Vertical Axis (5th Joystick axis) in my input manager. I´m using a Joystick similar to Xbox One.
https://imgur.com/a/cgvaI9k
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
https://imgur.com/a/pyESvu4