moonbat
moonbat
CC#
Created by moonbat on 12/28/2024 in #help
Is there a way to make this a shorter phrase.
Tyvm
6 replies
CC#
Created by moonbat on 12/25/2024 in #help
Player death script(fixed)
I finally got it to work thank you. I just had to put the player tag on the player game object
17 replies
CC#
Created by moonbat on 12/25/2024 in #help
Player death script(fixed)
yea kill play.cs
17 replies
CC#
Created by moonbat on 12/25/2024 in #help
Player death script(fixed)
yea they are all conected but i get the same issue
17 replies
CC#
Created by moonbat on 12/25/2024 in #help
Player death script(fixed)
No description
17 replies
CC#
Created by moonbat on 12/25/2024 in #help
Player death script(fixed)
using System;
using System.Collections;
using System.Collections.Generic;
using System.Net.Http.Headers;
using System.Numerics;
using Unity.Burst.Intrinsics;
using Unity.VisualScripting;
using UnityEditor.Callbacks;
using UnityEngine;
using Vector2 = UnityEngine.Vector2;

public class PlayerMovementScript : MonoBehaviour
{

public float Jump;
public Rigidbody2D rb;

private Collider2D _collider;

private bool _active = true;


// Start is called before the first frame update
void Start()
{
_collider = GetComponent<Collider2D>();
}

// Update is called once per frame
void Update()
{
if(Input.GetButtonDown("Jump"))
{
rb.velocity = new Vector2(rb.velocity.x,0);

rb.AddForce(new Vector2(0, Jump));
}
}
}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Net.Http.Headers;
using System.Numerics;
using Unity.Burst.Intrinsics;
using Unity.VisualScripting;
using UnityEditor.Callbacks;
using UnityEngine;
using Vector2 = UnityEngine.Vector2;

public class PlayerMovementScript : MonoBehaviour
{

public float Jump;
public Rigidbody2D rb;

private Collider2D _collider;

private bool _active = true;


// Start is called before the first frame update
void Start()
{
_collider = GetComponent<Collider2D>();
}

// Update is called once per frame
void Update()
{
if(Input.GetButtonDown("Jump"))
{
rb.velocity = new Vector2(rb.velocity.x,0);

rb.AddForce(new Vector2(0, Jump));
}
}
}
17 replies
CC#
Created by moonbat on 12/25/2024 in #help
Player death script(fixed)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Killplayer : MonoBehaviour
{
public GameObject Player;
public Transform respawnPoint;

void Start()
{y

}

void Update()
{

}

private void OnCollisionEnter2D(Collision2D other)
{
if(other.gameObject.CompareTag("Player"))
{
Player.transform.position = respawnPoint.position;

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

public class Killplayer : MonoBehaviour
{
public GameObject Player;
public Transform respawnPoint;

void Start()
{y

}

void Update()
{

}

private void OnCollisionEnter2D(Collision2D other)
{
if(other.gameObject.CompareTag("Player"))
{
Player.transform.position = respawnPoint.position;

}
}
}
17 replies
CC#
Created by moonbat on 12/25/2024 in #help
Player death script(fixed)
is there a better way to send it?
17 replies
CC#
Created by moonbat on 12/25/2024 in #help
Player death script(fixed)
yea gimme one sec to open it back up
17 replies
CC#
Created by moonbat on 12/25/2024 in #help
Player death script(fixed)
this is the error I keep getting in unity
17 replies
CC#
Created by moonbat on 12/11/2024 in #help
My Visual Studio code keeps making this error
thanks for the reply. I just went and reinstalled some stuff and it seems to be working. the code was exactly like the vid i was watching. i just didnt have everything i needed installed
4 replies