The Mansion: Player Movement
I've done it!!!! It's alive!!!!!!!
The basic Mechanics for The Mansion have been implemented with some issues. As it currently stands The Mansion now features fully functional player movement with a near-functional system representing the ability of the player character to switch between floor and ceiling. As you can see in the GIF below, if you look in the bottom left corner, the moment the purple square changes to ceiling mode, it no longer interacts with the push able green square and wall white square, as well, a similar object given the tag "CeilingPushable" as opposed to the "FloorPushable" green block shown in the GIF will act the same way but inversed. This was achieved by constantly checking the player state and calling a function which defines the objects that are "Immovable" and "Pushable" based on it. This mechanic makes up the fundamental movement system of The Mansion and it is very significant that it has basic functionality however, there are issues. First off, the blocks do not yet disappear when switching player states, which shouldn't be too hard to fix, as well a check will have to implemented to ensure the player cannot change player states while on top of an object of the opposite state, say for example a player switches to being on the ceiling exactly where a pushable block is presently located, simply gamebreaking, a fix for which will involve checking on blocks of the opposite on the player object's position accompanied by an audio or visual indicator that for whatever reason state switching is not presently viable. Another note, the red block in the GIF is the working (and currently non-functional) prototype for the load-bearing column, which is currently being coded with the intent that it will move with it every block of an opposite type at the same time, which will become very important given that it will be a major feature in the latter half of The Mansion.
Overall I am ecstatic to have made this progress and am looking forward to venturing onwards into the unknown grounds of accursed function calling across objects and nonsensical syntax errors and am very enthusiastic for the progress made (even though it isn't particularly pretty).
P.S, There was a moment there that my function to switch the player state failed and I couldn't for the life of me figure why, UNTIL I REALISED that I was calling an if function to check if the player state was "floor" and switching to ceiling if it was THEN checking using an independent if statement if the player state was "ceiling" and switching it to floor point is, when I discovered this, I couldn't help but imagine a purple square performing the most imperceptible hops known to mankind and that very funny to me.
The Mansion
Status | In development |
Author | Rat Prophetist Fordism |
Genre | Puzzle |
More posts
- The Mansion: Release and ReflectionOct 15, 2023
- The Mansion: Testing DocumentOct 06, 2023
- Game ConceptAug 27, 2023
Leave a comment
Log in with itch.io to leave a comment.