05-07-2014, 10:49 PM
(05-07-2014, 07:51 PM)Bamboori Wrote: i think this should work.You have to define it first, but values don't carry over from one frame to the next (it'll get redefined).
i don't know if you need to define or create this condition somewhere first (never actually did AI programming).
The only solution to that is defining a global one outside of the ego() function - however that'll be used by all objects. You can again get around that by turning it into an array and only using one slot per object, but that's highly inefficient.
The easier solution is to drill down and see what actually yields true while charging (or shooting or leaping or any other combo thing): self.frame.
favorite dcing techniques: wpoint | double key inputs | holding back | alternate basic moves