Jump to content
  • Advertisement
Coleo Carlson

[HELP] i need help with my 2d game code

This topic is 382 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement

1. Player is a null reference, meaning GameObject.Find() failed to find the player and returned null.

2. For simple 2D collision avoid rigidbody physics unless you want something realistic (or a serious shortcut). Look into Physics2D.Overlap methods. If you just want it to work quickly with rigidbody physics, make sure gravity is off and make use of the OnCollisionEnter() callback method

Share this post


Link to post
Share on other sites

ok i disabled my player for this part so that makes scence but i dont know anything about physics2d.over lap because im just watching a video on how to make a game and im just doing what he does

 

 

Edited by Coleo Carlson

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!