Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 months ago.
Improve this question
friends, when I wrote a script for a circle to rotate at a certain speed, we can normally change the speed from within unity, but I also want the player to change the speed just like we change the speed in unity, I searched and couldn't find it, can anyone help?
You will need to add a UI element such as a button, slider or inputfield, then connect the event to a method in your script to change the speed.
https://docs.unity3d.com/ScriptReference/UIElements.Slider.html
Video tutorial: https://www.youtube.com/watch?v=k2vOeTK0z2g
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 days ago.
Improve this question
So I am making a game and in cutscene (which is 2D) I added explosion made from squers which happends in first 2 seconds. So particles burst but after 3 seconds they just go behind the background.
I had an issue with particles bursting behinds the backgrounds so I just lowerd Z position and it worked. Particles came forward but when I play animation they are foreward just for 3 seconds.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Do you know the on click animation from Cookie Clicker? When you click on the big cookie there is a small cookie poping out from where you clicked that jumps, falls and fades away. Can somebody help me make the little image appear and jump?
create a particle system
edit it to be a burst of particles (10 of them at once)
write a input system that triggers an unity event when pressing a button
trigger the particle system via code
Particles tutorial: https://www.youtube.com/watch?v=FEA1wTMJAR0
how to Trigger them via script: https://www.youtube.com/watch?v=qOXD7oRXBKQ
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 months ago.
Improve this question
The title basically says it all but how how would you go about making a c# code to unlock Roblox FPS cap?
I've tried looking online but couldn't find anything myself
Someone has already made a FPS Unlocker for this game.
https://github.com/axstin/rbxfpsunlocker/releases
It is written in C++. The code is open-source so you could study it to see how it works.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
i'm looking for a way to draw something (like a racing map) in C# as i do in for example paint . then pass information to a toy car to follow it. I don't need you to write a code, i just need a suggestion of the way to do it.
I think Unity might be something for you. It's a game engine with a free license, and you can program in C#.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to make free camera, everything looks good, but I can't move it.
There is camera class:
http://pastebin.com/2w9Qcb9M
And main class:
http://pastebin.com/F4WU919x
Any ideas what is wrong?
The camera class is updating a member variable ViewMatrix yet you're not using that anywhere in your code.