Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Load Scene On Collision

A Question for Baldi's Basics in Education and Learning

Members see zero ads. Membership is 100% free
how do i make it to were it will load a scene when touching a object?

Answers

Sign up to access this!
  • KitOdin avatar
    KitOdin Joined 4mo ago
    Using Unity...
    328 points Ranked 49601st
    access_time 11d edit 10d
    using System;

    void OnTriggerEnter(Collider other)

    {

    if(other.tag == "Player")

        {

    SceneManager.LoadScene("SceneName");

    }

    }

    • Helpful x 1
    • Interesting x 1
    • Thanks x 1
    Bananite avatar
    Mantra
    Bananite
    URL to post:
  • Mundodavi2 avatar
    Mundodavi2 Joined 8mo ago
    Offline
    110 points Ranked 66126th
    Mundodavi2 Johnster Space Studio Flag
    Affiliation
    Johnster Space Studio
    access_time 8d edit 8d
    Here:
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.SceneManagement;
    
    public class Bus : MonoBehaviour
    {
        // Start is called before the first frame update
        void Start()
        {
            
        }
    
        // Update is called once per frame
        void Update()
        {
            
        }
        void OnCollisionEnter(Collision gameObjectInformation)
        {
            if (gameObjectInformation.gameObject.name == "Player")
            {
                Debug.Log("Collision Detected");
                SceneManager.LoadScene("Results");
    
    
            }
    
    
    
    
        }
    
    
    
    
    }
    // Change The Script Name To Bus, To Work And Change The Results To The Level You Want
    Davi Souza Games avatar
    Mantra
    Davi Souza Games
    URL to post:

Embed

menu
Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Asker

Baldiisagoodperson avatar
Baldiisagoodperson username pic Joined 4mo ago
Eating at KFC
571 points Ranked 44304th
18 medals 1 legendary 3 rare
  • Submitted 50 Gamefiles Medal icon
  • Submitted 20 Gamefiles Medal icon
  • Returned 1000 times Medal icon
  • Thanked 50 submitters Medal icon
  • Submitted 5 Gamefiles Medal icon
  • Returned 100 times Medal icon
Baldiisagoodperson avatar
Baldiisagoodperson

Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • favorite 3
  • remove_red_eye 160
  • mode_comment 10
  • access_time 11d

More from Submitter

menu

WiPs by Submitter

menu

More Decompile help Questions