Advertisement Jump to content
Coleo Carlson

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

This topic is 471 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!