Journal Entry 2


Activity:

- Write projectile shooting script for the gun.

- Write projectile script (handle its life span and its solidification)

- Fix movement controller bugs.

Invested hours:

- 4h

Outcome:

- the glue gun mechanic.

Notes:

As I mentioned in the previous dev log, I'm implementing a first-person 3D game with puzzles based on the glue gun mechanic from the game Prey.

Basically, the shooting mechanic itself is really simple, but the projectile logic is complex. It should get solid if it touches any object (excluding the player), even a moving platform or another projectile. Also, the projectile will not be solid forever. The object will be shot, get solid and get bigger at the same time if it touches something, then after a few seconds get back to normal size again and become physical again, and after a few seconds just fade away. So, while projectiles are solid, they will form any possible shapes. I want to use this ability to make some puzzles where you need to "build" some sort of bridge.

I spent some time trying to make projectiles dependent on each other. So, if I shoot a few projectiles at each other, they will "get normal" at the same time. Now it seems to work well, it's even interesting to play. I planned to make some puzzles with physics boxes (with rigid body), when you need to stop some moving/falling box, but the boxes behave really weird. There might be some problem with the physics state of the projectile when it touches the box with a rigid body, because the box receives a velocity in the opposite direction from where the projectile was shot (it’s actually really funny, box just kind of go away). So, I will either spend time trying to fix this or just not add puzzles with physics.

Leave a comment

Log in with itch.io to leave a comment.