itch.iohttp://itch.iohttps://itch.io/t/1517330/a-problem-with-player-teleportationA problem with player teleportation.https://itch.io/t/1517330/a-problem-with-player-teleportationFri, 09 Jul 2021 23:34:29 GMTFri, 09 Jul 2021 23:34:29 GMTFri, 09 Jul 2021 23:34:29 GMTHi. i want to teleport the player when it hits something but i don't know why it doesn't work.

this is my code:

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class teleport : MonoBehaviour

{

    

    public GameObject spawner;

    public GameObject player;

    // Start is called before the first frame update

    void Start()

    {

       

        

    }

  

   

    private void OnTriggerEnter(Collider other)

    {

        if (other.CompareTag("Player"))

        {

            player.transform.position = new Vector3(spawner.transform.position.x, spawner.transform.position.y, spawner.transform.position.z);

        }

    }

}

If anyone knows why I would appreciate if you could tell me.

]]>
https://itch.io/t/1489750/how-can-i-implement-rpg-elements-in-c-read-for-clarificationHow can I implement RPG elements in C#? (read for clarification)https://itch.io/t/1489750/how-can-i-implement-rpg-elements-in-c-read-for-clarificationFri, 25 Jun 2021 06:16:44 GMTFri, 25 Jun 2021 06:16:44 GMTFri, 25 Jun 2021 06:16:44 GMTI know I will be stuck on this one. I want to implement a basic, yet enjoyable, RPG system. How can I code how much damage can be done to an enemy NPC or to a character? I want to know how I can code reactions towards elements too (fire>earth, water>fire, earth>water). 

I want to make it simple but fun to play, since game jams are quite short.

]]>