Hi everybody
First of all, I'm new here, first time programming with AppGameKit but long time programming for the web.
So I began to create my first apps, a little game... and I had some questions for you.
First question is, I want my sprite to run an animation and when the animation end, the sprite should disppear... if I put the "SetSpriteVisible" just after the "PlaySprite", the sprite disppear immediatly... and if I put a "Sleep()" between, the animation wait the Sleep to end before starting...
Is there some sort of callback in functions ?
My second question is more for physics, I've a player that is moving with the Accelerometer, and I want it to "bounce" when he collides something... so I tested the "SetSpritePhysicsRestitution", but it doesn't seems to work... I think it's because when my player collides into something, my player "bounce", but because I'm always moving, the moving function just override the bounce and my player doesn't "bounce", he just push the other sprite.
So how can I make my player bounce when he collides ? Is there a way to see if my player is getting some "restitution" from a collide, and then don't launch the move function ?
I hope you could understand me and sorry if my english is bad, and ask me if you didn't understand everything.
Thanks a lot