Where i can collect money from a square, and if i hit something or damaged something i lose money ( hit something from the back 15%, from the side of the object 10%.
If you go on the grass, you have 5 seconds to get back on the path, or you will get reset to where you come off the path. And there will be an automatic deduction on your money till you get back on the path during the 5 second.
A tutorial that the screen or button lights up red, so you would know where to stop at a square or not. Need the red light to blinking, so you can pick up money or drop it off from there.( blinking )
Want a tutorial with a target amount of money set for each stage to be collected. So at the end of the path, when you get to the end of the level. You have to reach the target amount to pass the level.
Want a script or tutorial that if i am in a square( trigger). I can get the full amount of money and if i pass the square or miss it. I lose money (50%). This is dropping of money in the square or collecting money from the square. More than one square can be in a location or area to collect money from.
You will never find any scripting tutorials that show how to create the exact specific thing you’re looking for. There could be millions of different ways to implement what you’re describing here.
Instead, break down these large tasks into smaller, more simple tasks.
Let’s break this down, for instance:
Assuming “a square” is just meant to be an area that the player moves in; you could use a trigger BoxCollider to create an area for the player to enter.
Now you need a way to detect when the player enters the area of “the square”. You can accomplish this with trigger colliders using OnTriggerEnter.
Once you’ve detected that the player is inside “the square”, you want to change some value. Perhaps you may want to get a component on the player object that has the value you want to change. You could use the OnTriggerEnter method from the previous step to do so.
So on and so forth.
You will have a much easier time finding tutorials for simpler tasks, such as adding a collider to the scene, detecting objects that interact with the collider, and changing a value from one script in a different script.
When you accomplish these smaller tasks, you can then accomplish the greater tasks.
For beginner scripting tutorials, check out the videos in the Learn section.
As suggested, break down each task you have above into subtask. Once you get that list going, start trying to figure each piece out. Come back for help when you get stuck. You might also find that some subtask will be apart of multiple tasks and in other cases, you’ll figure out some subtask from other subtask. Take each part slowly and eventually you’ll get where you want to be.