Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loops?
#5
(05-07-2014, 07:51 PM)Bamboori Wrote:  i think this should work.
i don't know if you need to define or create this condition somewhere first (never actually did AI programming).
You have to define it first, but values don't carry over from one frame to the next (it'll get redefined).
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.
Reply
Thanks given by:


Messages In This Thread
Loops? - by bashscrazy - 05-07-2014, 03:30 PM
RE: Loops? - by Silverthorn - 05-07-2014, 04:11 PM
RE: Loops? - by YinYin - 05-07-2014, 05:26 PM
RE: Loops? - by Bamboori - 05-07-2014, 07:51 PM
RE: Loops? - by YinYin - 05-07-2014, 10:49 PM
RE: Loops? - by A-Man - 05-08-2014, 09:52 AM



Users browsing this thread: 1 Guest(s)