Devlog 4


(We'll updating new gamestory and some music or sound effect)

This is some animation if character want's go through the door, looking at the picture, examine some object.


this is the example of our map still on process for the object. sorry for the character still haven't wal animation, we'll updated as soon as possible.

We want to use some pointer texture like, if player can examine some object the mouse pointer will replace by image for examine. Why we use it? we hope that player plying this game know the different where's the object can be examined nad where's can't be examined. this is the code (For the cursor texture still on process) : 

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CursorTexture : MonoBehaviour {

public Texture2D defaultTexture;
public Texture2D pickupTexture;
public Texture2D exitTexture;
public Texture2D examineTexture;
public CursorMode curMode = CursorMode.Auto;
public Vector2 hotSpot = Vector2.zero;

// Use this for initialization
void Start () {
Cursor.SetCursor (defaultTexture, hotSpot, curMode);
}

// Update is called once per frame
void Update () {

}

void OnMouseEnter(){
if(gameObject.tag == "exit"){
Cursor.SetCursor (exitTexture, hotSpot, curMode);
}
}
void OnMouseExit(){
Cursor.SetCursor (defaultTexture, hotSpot, curMode);
}
}

Get Palasic

Leave a comment

Log in with itch.io to leave a comment.