Ladders, rocks and whatnot
Today we added a bulk of the mechanics the boy will be interacting with. We started with writing down the basic code for the boy to push and pull objects, even if he isn’t doing the animations for it, he’s at least triggered by the pressing of two keys at once which is exactly what we want; arrow key + Left Crtl button to interact with and move objects. The process involved lots of trigger spheres and separate box colliders, I’ve also found quite a few faults within the process of pushing a box over and standing on it as either he will slip off of it if not placed correctly or pushed properly, or he will end up pushing the rock out of place WHILE pushing it down which results in it not being able to fall down because the boy is out of the trigger area. To resolve the latter from happening, I increased the trigger area as well as the box collider so he will have no choice but to be within the trigger area as well be able to walk across it and not die!
The second task that came with this was having him actually look as if he’s pushing and pulling things rather than walking straight into it. This was relatively easier to do than the first task, quite simply all that needed to be done was trigger the animations in the pushPull section of our code.
The final task we accomplished today was the ladder. Ah, the ladder- there were many doubts about adding the ladder in to the prototype given the time constraints we were facing but without it, it made for a rather awkward transition upward to the next level of ground he needed to be at. So we decided to throw in our ladder except, instead of having him climb like a normal being our player has to suffer a tiny bit and hop up the ladder every step of the way until he meets ground. On the bright side, he doesn’t die if he falls off!
(no pictures today, so sorry guys!)