DevLog - Michael MOD
Dev Log
My goal this week was to create a playable co-op system in Unity. My initial goal was to attempt to use the unity networking system. This being my first time trying to use and understand the Networking system I was hesitant. I got it working(partially), It wasn’t too difficult I followed the Unity manual and a tutorial but for this to work you would need two devices so I thought it would be better to have it all on one device. I Already had a 2D player movement script so I imported that into my new unity project and began to try to figure out have to separate the inputs. The input system that I was using was
horizontal = Input.GetAxisRaw("Horizontal");
rb.linearVelocity = new Vector2(horizontal * speed, rb.linearVelocity.y);
the first in the void Update the second in a void FixedUpdate.
The problem with this is by default the Input Horizontal uses both “wasd” and the arrow keys. At first I didn’t know you could change this but after a while I figured you could. So I created two different Horizontal Inputs one for “wasd” and one for the arrow keys and created two different scripts each unique to the different players this also helps for the future in case I want different players to have unique abilities. Then I just had to create a simple split screen by limiting the camera size and viewport and added a canvas layer to create a clear border.
Get Whispers of the Wind
Whispers of the Wind
| Status | Prototype |
| Authors | TheWhiteWolf05, Kiniax |
| Genre | Puzzle |
More posts
- DevLog - Michael MOD - 51 day ago
- DevLog - Michael MOD - 41 day ago
- DevLog - Michael MOD - 31 day ago
- Devlog 101 day ago
- Devlog 91 day ago
- Devlog 81 day ago
- Devlog 71 day ago
- Devlog 61 day ago
- Devlog 51 day ago
- Devlog 41 day ago
Leave a comment
Log in with itch.io to leave a comment.