Programming a Bear Game
Contrary to popular belief you can't just add a game model to a game and expect it to work. No, sort of like a pet cat or dog you have to tell it what to do or else it will pee on your carpet.
Anyway let's say you are making a game and you want a box in it to turn red when you push a button like the spacebar. Using the C# programming language here's how you accomplish that:
You'd just attach this script to a model to make it work.
It's an extremely simple script but it should give you a general idea of how scripts and models work with one another. For a more complicated example this is the script that makes the chicken work:
Had to write a script for all the different bear related things in this game but some could be shared, the collectable foods all shared the same script with just different values. Though I was able to get help with some of them and worked off templates for the more complicated things. The largest script was the “Save Game” script, it was over 4000 lines long:
Fun times writing and debugging that.
If you want to learn how to write scripts go here. It looks complicated but it's actually quite simple once you figure out how it works.
Unrelated Note: An FF7 remake was announced during E3, I’m so excite. Just need a Chrono Cross sequel now.
















