Hi, Thanks for replying, I'm not very good at explaining code yet, But I guess I mean.
I need to be able to write a Vector2 like this:
u see I've save a velocity like this
| spr.velocity = new Vector2((float)Math.Cos(spr.rotation), (float)Math.Sin(spr.rotation)) * 2; |
I move my_player like this "spr.my_pos += spr.velocity;" using Vectors
But i need to read it like this
| spr.destinationRect = new Rectangle(spr.my_x, spr.my_y, spr.spriteWidth, spr.spriteHeight); |
Without using vectors
Id rather replace "spr.my_x, spr.my_y" with the my_pos vecotor but I dont know how to do that.
so atm I'm tring to save the first value of my_pos vector to my_x and the second valuse to my_y.
Or did I just make my problem even more confusing? 0.o