ruisen
ruisen

Reputation: 31

How can i use path animation in 2D XNA games?

I want my 2D sprites move just along some given paths(provided both position and rotation data) which can be read from separated files, and these files should better can be edited by some external editors or can be easily manually modified. Is there any way to do this in XNA games?

I have read thisStoring vector XNA Animations

It says to do this i have to implement a domain specific language for vector animation first, but is there any existing tool/library to save some time?

Upvotes: 1

Views: 1043

Answers (1)

FreeAsInBeer
FreeAsInBeer

Reputation: 12979

This looks like a good reference. From what I can tell, you can create paths with multiple segments and the sprite will follow the next part of the segment once it reaches the end of the current segment. It shouldn't be hard to add in rotation.

Upvotes: 1

Related Questions