The Daily Click ::. Forums ::. Klik Coding Help ::. randomly shooting out triggers.
 

Post Reply  Post Oekaki 
 

Posted By Message

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
20th April, 2004 at 15:46:25 -

Im making this game unrelenting p2, and I want to improve some of the errors from part 1. In part one, the enemy AI shoot out triggers every 00.20 sec, but by doing this he shoots out the trigger in one direction, so it makes it pretty easy to sneak through. (maybe this will help buggy visionAI:----- Good vision AI:---<<< .....or maybe not) I want the triggers to spread out so he can see better.

Ive tried:
o every 00.20 + enemy facing right = Shoot out trigger randomly in 5 direction facing right.

The trouble with this one is that the enemy isnt always facing 4 directions, it has 32. cos its a bouncing object moved by a direction calculator.
If you could help me out on how to make the enemy only go in 4 direction, or how to fix the vision a other way, it would be great.

 
http://www.robocaptain.com

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
20th April, 2004 at 16:10:07 -

If I understand you, you need to fire a trigger at Dir( "Active" ) - 2, Dir( "Active" ) - 1, Dir( "Active" ), Dir( "Active" ) + 1, and Dir( "Active" ) + 2. This fires triggers at 5 directions in the direction of the Active.

 
gone fishin'

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
20th April, 2004 at 16:13:23 -

hey.....that is so stupid, it just might work. Thanks, should have figured that out. Il paste it in now.

 
http://www.robocaptain.com
   

Post Reply



 



Advertisement

Worth A Click