6
« on: May 16, 2013, 06:39:36 pm »
Man I dont know why lists are so hard for me to grasp. Thanks hectate i'll mess around with it and see if it'll stick in my head. I think the hardest thing for me to understand is that third value. The 32.
What I understand that as. If the actor value is 32 in regards to hp and the actor were to teleport or disappear or something and be respawned it would still have 32 hp. And if that value hit 0 it wouldnt spawn anymore right?
I personally will be just using the code for spawning buildings that will be on a timer (constructing)
Basically I would set that third value to the construction timer? I was thinking of using just an endless 1 second timer to add to the number values of each actors attribute to simulate build time. That third value would work the same?
For instance. That 32 value starts at 0, once it hits 32 it switches animations to a different building. So I would do something like if actortype1, 100, 50, 32 > actortype1, 100, 50, 32 then switch animation to 2?