Hey guys im having a hard time mapping a quit button to go to the main menu…Also i need help showing my health when i take damage, its set at a 100 and the items take away 25… Can someone send me some love and help me out? Thank you!
Please check out
Getting Started
It really won’t help you too much to ask very small, specific questions like this. That’s definitely not the way to learn. The issue is that next you’ll need to know how to deal damage to an enemy, how to respawn your player at a new location, how to… a million other things ![]()
Go through all the learning tutorials and make the samples that they include. You’ll learn the answers to all these sorts of questions, and be able to figure out the answers to the questions that they DON’T cover on your own.
Look im into learning in all, But ive been at this for weeks researching. I need some help and the whole point, i wold assume with these forums was to get help. I would hope that someone can help me notice something i missed actuality… Or explain what needs to be done
The fast, unoptimised way is to reference your health UI text like this:
using UnityEngine.UI;
public class MovementScript : MonoBehaviour
{
public Text currentHP;
....
...
health -= 10;
currentHP.text = health.ToString();
...
}
For scene loading, see the OnClick event in the inspector when you have a button selected. Then see the last two examples here. Add a function like that to the OnClick event.
I was having issue having it read, am i missing something with the code?
You can learn from this tutorial…
Im still having issues with my quit button not going to the main menu as i want it to…
