Alright! I have good and bad news for the day. I set up a basic raycasting system for my XNA engine project. It works, however I'm getting a lot of errors with it. -_- So, I'm mostly back to square one, but I have a working system up that I just need to figure out what's wrong...essentially. I'm guessing it has a few other problems going on right now, but I'm working on it.
The problem I'm having is that I can't visualize the segments very well. I can visually mark the vertices, however I can't make the edges. For now, vertices work though.
The Player object is also animating well...I have a series of sprites that are very basic, but work fine for now. The animation also has different beginning and end sections as well, so the animation will run to a specific point, and then when it's done there, it starts back up at a specific point. It runs from left to right, then back to left on a new row, once it's exhausted that first row. So you can't have little sections of animation, like a square in the corner dedicated to running, a square in the corner dedicated to jogging, and a square between dedicated to something else...essentially. Here, I'll draw a diagram, hope it helps, cause it took me a while to make.
[run ][----][----][----][----][----]
[/run][jog-][----][----][----][/jog]
[fall][jump][----][----][----][----]
That diagram would work. The last 4 tiles in the lower right hand corner can be whatever the fuck you want, idc...but, you can actually make one frame specific to one thing, and it will "animate", essentially.
Run will last until /run, same with jog, fall and jump are individual single frames for the action. Eric should understand this pretty well...Anyway, there's no limit on size, so far as I know, but it's best to keep it small and simple I would imagine.
As for things that won't work, here's a good example.
[run][run][run][jog][jog][jog]
[run][run][run][jog][jog][jog]
This will not work, because it runs sequentially through this process from left to right in a row, then down a row back to the left, like I said. :-)
Anyway, enough said, I will be back in a few days with a new update! :-D
No comments:
Post a Comment