PlaceholderGames / 2016-VnD_Game

2nd year computer games development group project
2 stars 0 forks source link

Bug Report: Current and Needed Ants #60

Closed ghost closed 7 years ago

ghost commented 7 years ago

The HUD isn’t displaying the how many active ants there are on level and the number of ants needed to reach the finish line.

This bug can be fixed by creating a variable on each level to store the number of ants needed to finish a level and every second counting how many ant actors are active on a level, doing it every frame would slow the game down.

ghost commented 7 years ago

This bug has been fixed, the HUD is now displaying the current number of ant actors on the level in real time and ants needed to complete the level which is stored on each level as the “ants_needed” variable.

ghost commented 7 years ago

This issue is ready for review!

napiorek commented 7 years ago

Tested, seems to work fine

image

BojanStankovic commented 7 years ago

Tested this and merged manually since the modifications used level's internal macros. I recreated the modifications using the external macro libraries. @Richard-Chaos we have been using Macro libraries that live outside of level blueprint. In case you are not sure how it works just let me know and I'll explain it to you. It's quite straightforward 😃

NOTE: the maximum amount of ants shown on the HUD must be set separately from the ant spawner that actually determines that amount.

Closing

elliotnaylor commented 7 years ago

I looked into it we currently can't actually attach the max ants set in the spawner to the level unless we use C++

https://answers.unrealengine.com/questions/214248/how-do-i-get-a-reference-to-the-level-blueprint.html