For my game I do not need vector2 to use floats, it’s actually making things harder for me so I thought I would force it to use int instead but I got an error saying “Cannot cast from Vector2 to int”. Perhaps I am doing it incorrectly.
Vector2 position = new Vector2();
public Bob(Vector2 position) {
int pos;
pos=(int)position;
this.position = position;
this.box.width = SIZE;
this.box.height = SIZE;
}
I would prefer to work round up to the nearest 10 but working to the nearest whole number might be good enough to make things work as intended.
Thank you