Hi maybe you could help a newbie with some questions i gathered.
I try to do the following, but have no clue how to.
I want the player to assign characters/Person (global objects at the moment) to a tactical position (objects) (there are 5 positions at all). I thought about a drag and drop solution.
Problem:
Then i want to check which character from a list is assigned (maybe with a collision check?).
Problem:
When checked, i want to get a sum of the attack power variable of the assigned characters.
E.g.
Position 1 = cahracter1 with 50 attack power (atk)
Position 2 = character2 with 30 atk
…
Sum = 50 + 30 = 80 atk
I’m not sure how to call and sum the atk variable values from the assigned characters and put them to a scene variable for further operations.
I know how to calculate once i got the values
A last indipendent question:
If you imagine a management game lime football managers wirlth different windows for e.g. finances, training, tactics…
Is it better to make a new scene for every window or better delete and create the interface for the window in the same scene. There are not too much scene variables at the same time, so loading a new scene every time could be more cpu intensive?
I’d be greatful for all advice.