Savant Posted April 29, 2009 Author Share Posted April 29, 2009 Question for HM, most likely:Does EE3.0 inherently support pathfinding for projectile animations? For example, if I am at location (X1,Y1) and my target is at location (X2,Y2) and I cast a spell like a fireball, would the engine have the capability out-of-the-box to animate the projectile image towards my target (even if he's not in one of the four cardinal directions)? Somewhat related to that, if my target moves while the projectile is en route, can the engine readjust the projectile's final destination to compensate?Thanks! Link to comment Share on other sites More sharing options...
nickko Posted April 29, 2009 Share Posted April 29, 2009 no not without modification Link to comment Share on other sites More sharing options...
Homicidal Monkey Posted April 29, 2009 Share Posted April 29, 2009 im going to try some pathfinding AI Link to comment Share on other sites More sharing options...
Savant Posted April 29, 2009 Author Share Posted April 29, 2009 Sweet! Link to comment Share on other sites More sharing options...
Savant Posted April 29, 2009 Author Share Posted April 29, 2009 So, after thinking about it, I have some fun ideas for a game where projectiles behave like "arrows" in EE2.7 (i.e., they travel in a straight line from your player and hit whatever it encounters first). But pathfinding of the projectile images would be great, too. I'm more interested in just the movement of the image, rather than the projectile itself. In other words, I'm not concerned that the projectile location itself is updated as the image travels. I just would like the "illusion" that the projectile is traveling towards its target.I guess it would be great to have options? :) Link to comment Share on other sites More sharing options...
Anna Comnena Posted May 1, 2009 Share Posted May 1, 2009 Well weren't spells going to be particle based in 3.0? Couldn't you just make a vector between the player and the target, and use that vector as a parameter for the particle generator? Link to comment Share on other sites More sharing options...
Savant Posted May 1, 2009 Author Share Posted May 1, 2009 It might be a bit more complicated if you are trying to make the projectile "home" in on the target as the target moves. If you animate the projectile movement so that it's almost instantaneous, then you can probably get away with just keeping the vector between the player and the target. Like I said, I can see some fun, innovative systems with projectiles being handled like arrows are in EE2.7, so I think there's merit in keeping that as an option. But obviously some sort of support for pathfinding of animations would be epic too! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now