Tuesday, July 19, 2016


Venturing into 3D this time.  Picking up the game idea I had a while back, let's see how far this one gets :)

Day 1:

  • Started a new project.
  • Stole a sample scene.
  • Figured out how to attach camera to player, then swapped default player out for a cube.  Animation is for noobs super advanced people.
  • Made a movement script that includes jump.  The directional movements are currently analogue, might make that physics-based too since I'm already using rigidbody for jump for convenient gravity.
  • blocked in some assets.
  • Refresher on the tiny bit of C# I knew.

Code notes:

public KeyCode myKey = KeyCode.M;
if (Input.GetKeyDown(myKey)){
void OnCollisionEnter (Collision col) {
if (col.gameObject.tag == "Ground") {
isGrounded = true;

 Vector3 playerInfo = player.transform.transform.position;
gameObject.transform.position = new Vector3 (playerInfo.x + cameraDistOffsetX, playerInfo.y + cameraDistOffsetY, playerInfo.z - cameraDistOffsetZ);

Next Steps:

  • Make a less cubish player character
  • Get it to face whichever direction it moves in
  • Make it possible for the player to have a dialogue with Rynn
  • Probably figure out a rough art style??

No comments:

Post a Comment