Posted: Thu Aug 31, 2017 8:40 pm Post subject: Health Bars from dynamically spawned entities without them
It's a Unity game; At this exact moment in time I don't know if it uses Mono or IL2CPP
I'm doing this because I want to learn Assembly and LUA + I enjoyed the game and think that my design changes will improve the experience for myself.
Enemies don't have health bars or any actual showing of damage taken. They spawn and they die and that's pretty much it. So I want to add in health bars over their heads. I haven't quite figured out how to find their health values but it's what I've been currently working on.
1. How do I find the health values of dynamically spawned enemies?
2. How do I find their location
3. How do I draw a rectangle over their heads
The other question I have is a bit more interesting. I want to change an object. Normally no one purchases this item because it's a waste of resources and it's better to save up. I want to change it so that after X time the item turns into a different item. Effectively it destroys itself and spawns in the new item in its place. As game logic that couldn't be simpler. I'm not sure how to get started on that with CE, though.
LOKEN 7 (Death GOD 7) Advanced Cheater Reputation: 0
Joined: 21 Jan 2017 Posts: 89 Location: Kathmandu,Nepal
Posted: Thu Aug 31, 2017 11:03 pm Post subject:
Unity game name please? _________________
Don't think that I'm beginner because
EACH MASTER WAS ONCE BEGINNER
"If you are good at something,never do it for free"-The Joker
Dont Judge Me, Judge Yourself
I know you are looking at this post, Hitler
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum