Game
Project Smile
8 years ago

Devlog #8 - Pickups, save system and other work


Hello. This is Anton again and I will be describing the work I’ve been doing since the last post. This includes making a system for pickups, implementing more of the save system and other work

Pickups

Some objects have no variables which is changeable. Instead the only interaction available is picking up the objects.
The pickup class builds upon the basic interaction system by adding functions and variables which allow the objects to be enabled and disabled. They also get a link to the save/load system and a numerical id. This allows for them to call a function to the save/load system when they are picked up.

5d0a9547227ac.png
5d0a954990091.png
5d0a954c06657.png

The save/load system

My personal goal has been working on a save system and the design has been changed since the last Devlog. The original design was making it a part of the character object which seemed logical as all Interaction objects carry a link to its activator. After some initial implementation was tested it caused a number of problems.
-It made the character object grow larger and harder to understand, this problem would only grow if the design was not changed.
-Causing problems with working in parallel as the character object is being worked upon by Jonathan
-Although most of the variables are reloaded on player death, the array of object references need not be.

The array of objects was one of the harder decisions made during the project so far. The initial plan was to simply gather a list of all the pickups as the game started with GetAllActors function. However, after some discussion with Dennis we decided for a solution which would withstand changes brought by the development. Instead we decided to manually add all the items we wanted to save as pickups in an array. This ensure the order of saved pickups remain constant when adding and removing objects.

The order of saved pickups is important as the save/load system keeps an boolean array of the status of the objects. When it loads the game all of the pickups are activated/deactivated. This array is written to both when the game is loaded and when the deactive object function is called. The integer sent is the array index.

5d0a954e43487.png

The actual save game object containing the data saved to disk has been changed from the original design. Instead of saving the location of all the pickups it merely saves the boolean array.
Once the system is complete it will also hold arrays for the door variables .

Cooperative work

One of the more interesting thing about this project is making certain all of the different pieces from different developers work together correctly. I’ve been working with Jonathan to make certain the player character supports the save/load system correctly.

I’ve also been working with both Dennis and Jonathan to make the interactive system works with Dennis hideouts and Jonathans character object.

As the project continues towards the 22th December I hope that all of the saving system will have the ability to save doors and AI.

See you in 2018! Merry Christhmas!



0 comments

Loading...

Next up

Did you know that today is #InternationalJazzDay? 🎷😎

No? 😯 Well, we couldn't pass up this date!

And what better to celebrate this day than #Pecaminosa #OST? 🎷

Let us know what you think about it and have a great weekend!

"Our work is never over" they said.

In the quest for accessibility, I'm adding Resurrection Shrines for players on the 'novice' end of the platforming spectrum.

In order to unlock the power of a Shrine, you must collect 3 'Souls' from your dead corpses! (the floating blue orbs)

So here's the first of the zodiac signs i will make for the next weeks.

Demonstration of the spells and their effects :)!

Hi everyone! I started to create some environment props for my new video game, here is a cozy house in the forest. I'm planning to switch from Unity to Unreal... Let's see what new challenges I have to face. Made in Blender and Substance Painter.

We're glad to announce that Baby Dino Adventures 🦖 is now available in Early Access here on GameJolt! Link: https://gamejolt.com/games/babydinoadventures/508121 Walk, run, and jump as a baby t-rex in this cute platformer Free demo available #IndieGame | #GameDev | #PixelArt

Auto-chess meets Clash Royale in an intense strategic battle. Outsmart your opponent, hide your play and crush their armies! Empire Builder just got another major update, check it out! https://gamejolt.com/games/EmpireBuilder/558901

If you’ve played the Vault demo and enjoyed it, please consider ‘liking’ the game page here on Gamejolt and/or leave a comment!

Also please consider tossing Vault on your Wishlist, I really appreciate your support!

https://store.steampowered.com/app/1251800

it happens