NEED HELP IN MY GAME!!!

I started making this game in Unity. The point of this game is that ur a fireball and ur suppose to knock other balls of a platform. So i need help with javascripting the spheres so they can crash into other spheres and then the other sheres move to the direction they were crashed into. I also need to javascript an AI for the other balls. SO they can move by themselves and crash into other spheres and YOU and ya… AND i already scripted the fireball(YOU) to move forward back and right and left and jump and stuff. I just need to figure put how to make them move when to balls collide or crash into each other. PLZ UNDERSTAND WHAT IM SAYING. OH AND I SUCK AT SCRIPTING!!! so im asking u too script for me or help me out in making my game or something. AND YES THIS GAME IS SORT OF LIKE A SUMO WRESTLING GAME!!!

Sounds easy enough. Add rigidbodies w/ colliders to the balls and let the physics engine do the work for you.

:smile: :smile: :smile: Thnx, Maker16 I’ll try that, but what exactly did u mean the pysics engine will do all the work? :shock: :shock: :shock:

CAN utell me step by step what u ment cuz i dont know what to attach the rigid body script to and i dont know wat itll do and not sure wat to do after.

You need to follow the tutorials, no one here is going to write your game for you.

Unless you want to pay us to do so, then you ought to post in the Collaboration forum.

it doesnt mention this in the tutorials I CHECKED and i dont need ppl telling me how to make it but what to use to make something happen when to spheres collide.

two not to

sorry for bad spellling and grammar

If you’ve added Rigid Bodies to both spheres, you can use OnCollisionEnter:

Thnx tonyd THATS ALL I needed to know

CollisionEnter…ummmm… I do not know how to use that or write a CollisionEnter script. The examples in the site u put in ur post dont do anything

I attached a CollisionEnter Script to both of the spheres and nothing happens when i play the game. I move my sphere character towards another sphere. There is no collision when i crash into the other sphere.

Those examples are just there to show you how to use the command and a reason you might use it.

You need to write your own script to make it do what you want to.

Probably none of the example codes you will find will ever “just work” without some changes by you.

I created the script myself