[HELP]

Posts 17 of 7 · Page 1 of 1
[HELP]
Well, I want to make something that when a sprite touch an other, the first one will goes back to Vector2.Zero,,,,,,I used:

Code:
if(vec == eVec || vec.X == eVec.X || vec.Y == eVec.Y) 
{
         vec = Vector2.Zero;
         eVec = new Vector2(700, 100);
}
cVec -- Enemy Vector
vec -- Player Vector
Not quite sure if these IFs will work like you want... but ok..

Explain better the result you want and what are you trying to do.
And whats actually your problem...?
Quote Originally Posted by 'Bruno View Post
Not quite sure if these IFs will work like you want... but ok..

Explain better the result you want and what are you trying to do.
And whats actually your problem...?
well, when I move a sprite around, and it touches an other sprite I want the first one to get back on the start position... It works, but I need to put the sprites on the same location....

For ie:
At your game when you crash 2 planes (or whatever) your plane gets destroyed....
Well i stop drawing the plane.

You mean you want to reset their position? If thats the case.. I dont see the problem
Quote Originally Posted by 'Bruno View Post
Well i stop drawing the plane.

You mean you want to reset their position? If thats the case.. I dont see the problem
huh? well, it resets the position only if the 2 sprites are in the exact position, but I want to reset it when they touches each others....
ha.. lol.. check my code.. you will find examples there mate
Quote Originally Posted by 'Bruno View Post
ha.. lol.. check my code.. you will find examples there mate
xD it's gigant xD, Will take me a lot of time xD
Posts 17 of 7 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?