Care Escape 9/17 - 9/23


9/17/18

Working on making the room bigger, saved the material used so it can be reused.

Added collision walls to room, and a collision area to player.

Figured out how metadata works basically adds a object specific variable, that can be called upon. If uncertainty exists about if the meta exists you can get a list of metadata, convert it from a string array to an array and check if it has the meta.

I set up an array to remember your position then when you collide with something I having it reverse your position.

I had a bit of concern that store the data in this way might slow things down over time, however I watched my resource monitor for the game while I walked around and it did not look like the cpu or memory consumption was increasing over time. It uses about 70MB of memory, and 2% of my cpu.

I think the next thing I’ll do is start making the light switch.

So the debate is whether to use two boxes with one going in, or to try learning morphing or bones with this.

9/18/18

Began exploring how bones work in godot 2.15, from what I have read it seems I’ll have to attach the bones in the model before importing.

I constructed a switch in blender rigged it with bones and painted the bone weights so that only the button is affected by it’s scale.

9/19/18

Made the animation of the switch in blender.

Textured the switch, ended up going through 3 different designs. The color was too light on the first 2 attempts, it almost made the switch glow.

9/20/18

Exported switch in blender and imported it as a scene in godot.

Made a script in the new scene.

Set the master script to save logs of the new scripts changes.

Set the area 1 script to spawn a switch at start.

The switch will need to be moved and scaled.

9/21/18

Set switch to have meta data, with "ObjectType" equaling "LightSwitch". This will bet handy when I implement clicking on it, as it can check ObjectType and react according to what that equals. In the future though I’ll have to make a reference from the collision shape to the root which has the data. I should probably move the code into the light switch scene so it will be done for each light switch.

I added a ray to the player and set it’s collision mask to 2, that way it won’t collide with walls, but later could collide with light switches and items.

9/22/18 - 9/23/18

slacking

The scripts are still in data/devlogs , the new ones are game area 1 3-5, light button script 0,  master script 12, player script 38 - 43.

By the way these can be opened with notepad.

Files

careEscapev0004aWinx32.zip 6.1 MB
Sep 24, 2018
careEscapev0004aWinx64.zip 7.2 MB
Sep 24, 2018

Get Care Escape

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.