• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

What would be the best ways to communicate this type of data?

Aquinus

Resident Wat-man
Joined
Jan 28, 2012
Messages
13,147 (2.94/day)
Location
Concord, NH, USA
System Name Apollo
Processor Intel Core i9 9880H
Motherboard Some proprietary Apple thing.
Memory 64GB DDR4-2667
Video Card(s) AMD Radeon Pro 5600M, 8GB HBM2
Storage 1TB Apple NVMe, 4TB External
Display(s) Laptop @ 3072x1920 + 2x LG 5k Ultrafine TB3 displays
Case MacBook Pro (16", 2019)
Audio Device(s) AirPods Pro, Sennheiser HD 380s w/ FIIO Alpen 2, or Logitech 2.1 Speakers
Power Supply 96w Power Adapter
Mouse Logitech MX Master 3
Keyboard Logitech G915, GL Clicky
Software MacOS 12.1
Let us know about the finished product.
 
Joined
Jun 6, 2012
Messages
550 (0.13/day)
Processor Intel Core 2 QX6850
Motherboard ABIT AB9 Pro
Cooling Zalman CNPS-9900 MAX-R
Memory Patriot PDC24G6400LLK (4x 2 GB)
Video Card(s) Palit GeForce GTX 560 Ti Twin Light Turbo
Storage Not Enough!
Display(s) Samsung T240HD
Case NZXT Zero
Audio Device(s) Creative Labs Sound Blaster X-Fi Elite Pro
Power Supply Thortech Thunderbolt Plus TTBPK00G 1000W
Mouse Elecom M-DUX70BK
Keyboard CM Storm Trigger (Cherry MX Brown)
Software NOT Windows 10
Or I could just keep them as seperate processes (or maybe just threads) and make the graphics maintain a queue of the actions. So if the graphics is animating Tom the Monster walking over this way, the game doesn't have to wait for anything (since it already knew where Tom the Monster was long before it told the graphics) and could just start going through the AI. The game only ever really needs to wait for the user because it can't just start running AI for a character the user controls.

You haven't gotten anywhere near this point yet, have you?

Yes, the actual game logic does wait for user input. However, since you're using graphics to communicate events and results, the player needs to see that. The player would probably want to know where the AI has moved Alice the NPC before shifting focus on the next character. If the camera is far away that the entire battlefield is visible (similar to the recent King's Bounty games), this wouldn't be a problem. But usage of camera centering implies that's not the case. Also, what you're saying is that you want the game to shift to the Bob the PC when Alice the NPC has made an attack on Carol the PC (or even Bob the PC!) and the animation is still running... way before the damage numbers show up. The player won't be able to see the results unless this information is displayed in an on-screen combat log (again, similar to the recent King's Bounty games).

I do agree with the others who have given you advice. But probably the best way for you to figure out the best way would be just trying to do it yourself and figuring it out from there.

As someone who's also working on a turn-based hexagonal grid SRPG, I do wish you the best of luck along your journey. You'll need it... especially when working on meaningful battle mechanics and programing the AI for all that.
 
Joined
Feb 18, 2010
Messages
1,850 (0.36/day)
System Name Eldritch
Processor AMD Ryzen 5 5800X3D
Motherboard ASUS TUF X570 Pro Wifi
Cooling Satan's butthole after going to Taco Bell
Memory 64 GB G.Skill TridentZ
Video Card(s) Vega 56
Storage 6*8TB Western Digital Blues in RAID 6, 2*512 GB Samsung 960 Pros
Display(s) Acer CB281HK
Case Phanteks Enthoo Pro PH-ES614P_BK
Audio Device(s) ASUS Xonar DX
Power Supply EVGA Supernova 750 G2
Mouse Razer Viper 8K
Software Debian Bullseye
Yes, the actual game logic does wait for user input. However, since you're using graphics to communicate events and results, the player needs to see that. The player would probably want to know where the AI has moved Alice the NPC before shifting focus on the next character. If the camera is far away that the entire battlefield is visible (similar to the recent King's Bounty games), this wouldn't be a problem. But usage of camera centering implies that's not the case. Also, what you're saying is that you want the game to shift to the Bob the PC when Alice the NPC has made an attack on Carol the PC (or even Bob the PC!) and the animation is still running... way before the damage numbers show up. The player won't be able to see the results unless this information is displayed in an on-screen combat log (again, similar to the recent King's Bounty games).

Yes, in the gamespace, Alice has already attacked Carol, but the player doesn't see that until the graphics gets through Bob's turn, and then focuses on Carol, then goes through Carol's turn. So the game has already figured out what all of the NPCs have done, but the graphics doesn't show it until it gets to that action's place in the queue.
 
Top