Please help MEEEEEEeeeeeee
Have you tired using the message and mailbox behaviors?
When the enemy gets hit by a bullet or lose health, it sends a message to the player in which the message adds to a counter.
i have tried that but it did not not not work
I can give you a complete rundown in about an hour. Looking forward to it!
Ok. Here’s what you want to do:
- Make a mailbox block in your player. Connect it to a number (make it 1), and connect that number to another number (0) at the + sign. Name the mailbox Kill.
- On the enemy’s death, send a message to your player titled Kill.
Basically, the 0 number is your overall kill count. By attaching a one to the mailbox, it allows 1 to be added to that kill count. When the enemy dies, it sends a message to the player that acts as a trigger. Then it reaches the player, which triggers the 1, which adds 1 to your overall kill count.
If there’s something more complicated you’d like to add, such as text, please ask me and I’ll lead you through the steps.
Here’s an example of what Hihilogic has explained:
(Notes inside of the code, if you need any help ping me)
so the reason it did not work was that I did a smooth brain and did not label both the send message and mailbox behaviors Thank you to everyone who tried to help though you guys are amazing people!
Yeah that would do it
Just @hihilogic anytime you need me.
Yikes, a simple mistake. Well, good thing you found it!
Also, you’re welcome for trying to helping.