Hey, I am creating a game on my own in Unity 3D but i stuck somewhere. We control a hero in this game and dodging objects which coming from outside in a circle place. But I just did spells which moving to a point from a point. But I want to do objects which spawned random times and random places go towards to the hero and when spawned rotates itself to hero. For example when a spear spawned it will go towards to where the hero is.
You are aware "professional" just means someone is getting paid and has nothing to do with actual skill, right? What you want can be accomplished with these three methods. Use Random.Range to determine when and where to spawn, then use MoveTowards and RotateTowards to move and rotate an object in a certain direction. https://docs.unity3d.com/ScriptReference/Random.Range.html https://docs.unity3d.com/ScriptReference/Vector3.MoveTowards.html https://docs.unity3d.com/ScriptReference/Vector3.RotateTowards.html
This doesn't require a professional, it requires you posting in "getting started" or maybe the scripting forum.
@duhanayan34 you don't need life support. You need learn to use search tools. Internet is full of tutorials an guidelines. As for discord, Unity has own channel. Go there if you think it may help you. I don't expect many active professionals there however. If you have specific questions, search first. If you fail to find an answer, then ask. As of the spear problem, search moving GameObject keywords. Also, you should visit Getting Started forum section.
LookAt it's the thing you want to research and experiment to look always at something. https://docs.unity3d.com/ScriptReference/Transform.LookAt.html About the random spawn system, it's just this: https://docs.unity3d.com/ScriptReference/Random.Range.html With this: https://docs.unity3d.com/ScriptReference/Object.Instantiate.html With this: https://learn.unity.com/tutorial/object-pooling
What have you actually tried? What isn't working? Why haven't you posted this where it belongs, the Getting Started subforum?
I tried research about it. I have found a script named Homing Missile. It is working as following the character. I mean rockets and spears are chasing the character. But I don't want it. I tried to make it using "Transform", "Translate" and "SetPosition" methods but I couldn't. :/
If you want help on this you need to state what you have already tried, include the code (use CODE tags when posting code), what you expected the code to do and instead what it is actually doing that is incorrect. If you aren't that far yet and don't really know where to even start, you should be going through tutorials in the Learn section or Youtube because the forum users aren't going to be able to tell you to do much more than that anyway. The forum is good for getting specific answers to specific questions, but not with teaching concepts that would fill an hour long video to teach. No one here is going to write a 5 page long description of every single step you need to take to do something somewhat complex.
Editing someone else's code to do something different than originally intended is actually a whole lot more difficult than writing your own implementation from scratch.
Only if you know how to program and know the api. If you don't know either, imho it's easier the other way around and make small steps toward the goal by making small changes to working code and applying lots of patience and trial and error. YMMV of course.
If you're doing some rather trivial changes, sure, in that case you don't necessarily need to understand everything the script is doing. But you're trying to change a Homing Missile script into something entirely different. That will be difficult to pull off if you don't both understand everything the script is already doing, and learn what you need to do to change it to what you want from it. Frankly I think it is easier to just do the second part and write your own script.
Especially considering this is a beginner whose real focus ought to be more about learning thoroughly rather than trying to complete something over their heads quickly. To OP, i second the general consensus here to step back to square one and learn the fundamentals. You want to be at a point where you can do the logic in your head and know the tools to make it happen, but may be you get some little unexpected hiccup - then that is good time to use forum for help. Definitely not incompetent, just doing too much too soon. Don't beat yourself up. Take care of yourself, nobody else is going to.
I want to both agree and disagree at the same time, because for you and me what you say is true. But for my first gamedev project on iOS, using Cocos2D, I bought a "game template" that basically only had the core movement mechanic and camera perspective in common with what I wanted to make, and piece by piece I changed 99% of the codebase while learning both API and programming language from the example of the template. I thought it was a great way to learn and progress because everything was well documented and pretty much intended for what I was doing with it. In the end I think at most a couple of class, function and variable names where still the same but everything else was radically different. I'm not sure I'd have gotten that far if I hadn't "jumped in the deep end" and instead done a course on ObjC first and then started from scratch, because I think I might have lost motivation too quickly.
Before I comment further in this thread how many tutorials have you gone through for Unity? I can't imagine being unable to follow any of the information in the links I provided unless you haven't done at least some of the basic beginner tutorials.