Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GoEatToothPaste

8
Posts
7
Followers
A member registered Jan 21, 2024 · View creator page →

Creator of

Recent community posts

ur mom

why are youstupid

it is free

using UnityEngine;

public class PunchingSystem : MonoBehaviour

{

    public Collider punchCollider;

    public float punchCooldown = 1f;

    private float nextPunchTime = 0f;

    void Update()

    {

        if (Input.GetKeyDown(KeyCode.Space) && Time.time >= nextPunchTime)

        {

            // Trigger punch animation if you have one

            GetComponent<Animator>().SetTrigger("Punch");

            // Enable the punch collider

            punchCollider.enabled = true;

            // Set the cooldown for the next punch

            nextPunchTime = Time.time + punchCooldown;

        }

    }

    void OnTriggerEnter(Collider other)

    {

        // Check if the punching collider hits the target

        if (other.CompareTag("Target"))

        {

            Debug.Log("Target hit!");

            // Handle the target hit, such as reducing health or triggering a specific effect

        }

    }

    void OnTriggerExit(Collider other)

    {

        // Disable the punch collider after the punch

        punchCollider.enabled = false;

    }

}

using System.Collections;

using UnityEngine;

public class SimpleWalker : MonoBehaviour

{

    private CharacterController characterController;

    public float speed = 5f;

    void Start()

    {

        characterController = GetComponent<CharacterController>();

    }

    void Update()

    {

        float horizontal = Input.GetAxis("Horizontal");

        float vertical = Input.GetAxis("Vertical");

        Vector3 direction = new Vector3(horizontal, 0f, vertical).normalized;

        Vector3 move = direction * speed * Time.deltaTime;

        characterController.Move(move);

    }

}

this game in in alpha

cccccc

This is the demo btw