|
|
Hey, i want to restart my game with a button named "new game". I dunno how redraw this or restart it?
My pictures are over the top of phone. A bit before game ends, i let them fall to bottem. Now i want to restart my game, how can i get my pictures again to top?
|
|
Coordinator
Jun 4, 2012 at 12:42 PM
|
You will need to set their position, and also clear any impulse so they are "reset".
Something like -
spr.Position = new xna.Vector2(0,0)
;
spr.BodyObject.LinearVelocity = Microsoft.Xna.Framework.Vector2
.Zero;
spr.BodyObject.AngularVelocity = 0;
|
|