PDA

View Full Version : Isometric shooting?


Opera_Ghost
12-14-2008, 10:58 AM
Hey everyone Iv been working on an Isometric game for a while now, its very much like "legacy of kain blood omen 1" (great game if u dont know it) Anyway onto my issue. I have a player that walks around perfectly, my monsters chase him like a dream, they try to hit u in close combat nicly BUT when it comes to ranged attackers I am at a lose! The main resaon why this is so hard is the way my monsters walk, they use PI to rotate and face my hero and if the angle they are looking at is in a certain range the movieclip with make it face the hero. But becasue iv used PI shooting becomes very hard, i have no idea how to make the monster shoot an arrow or a spell on an angle depending on how its looking at the hero. I really need this shooting code or the game is very boring only fighting close combat fighters plus i need this code so that the hero can learn spells, shoot arrows and that other good stuff.

If anyone can help me that would be great :) thanks

pradvan
12-15-2008, 02:30 PM
If I'm understanding your problem correctly, this should help you:
http://www.freeactionscript.com/2008/10/game-engine-shooting-projectile-bullets/