Saturday, October 23, 2010

Success with Sparky's!

Even though I haven't really had time to work on my level editor, I managed to force myself to start experimenting with Sparky's Collision .dll. Over the last couple of days I've learned how to simulate gravity with Sparky's, and also how to implement excellent collision detection. I threw together this little test to see if I could get a solid rotating platform...


The white lines represent the collision detection boundaries. Unfortunately I can't quite work out how to make the player "stick" to the rotating platform and yet still slide across it gently. This will be the next thing to work out and then after that I'll start work on the game itself. 

UPDATE: Several hours later....

Thanks to TGC Forum user Randomness 128 for helping me figure out how to make the player stick to a rotating/moving platform! Now that that's implemented by using some simple trig (which, to be honest, I have little understanding of trigonometry so it was a little intimidating to look at), I feel pretty confident in using Sparky's for just about everything my game needs. I'm more than a little excited! However I still need to test a couple of things, so stay tuned...

No comments:

Post a Comment