- Home /
I want to create a radiation scall in the top corner that continues going up until you get to the end of the map. I then want the player to die if the scale reaches the end and they havent reached the end of the map
Escape the map without the radiation scale reaching the top if so the player dies
Answer by KdRWaylander · Jun 16, 2015 at 07:43 AM
Hi,
You'll need UI (look for ways to fill a rectangle like for a progress bar)
You'll need timer-like code to fill up the rectangle based on time
You'll need a boolean that will pass to true if the 'radiation scale' is full and then kill the player
If rectangle is filled -> boolean is true -> player is dead !
Now that you have the basics, you can try something and then post back your code if you have trouble debugging it !
And you need some kind of trigger to see if you reached the end of the map
Thanks for the response but what I forgot to add is that I am a beginner and unfortunately know no code. This is a project for my class and it had to be done in 3 weeks and as anyone would know learning code is 3 weeks is pretty much impossible. So if anyone could help me there that would be amazing!
Well, we can't/won't just code the whole thing for you ...