1
General / Sprite Pointer?
« on: January 08, 2020, 08:50:58 pm »
Hy how can i get a sprite as a pointer?
I've tried:
Sprite Piece_1;
Sprite* Selected_Piece;
Selected_Piece = Piece_1;
and it doesn't work.
it says that can't convert a Sprite to Sprite*;
I need this because I am making a game, and I need a pointer to a sprite, base on a switch(ID_Piesa) selected from multiples sprites;
If there is another way, can you tell me?
I've tried:
Sprite Piece_1;
Sprite* Selected_Piece;
Selected_Piece = Piece_1;
and it doesn't work.
it says that can't convert a Sprite to Sprite*;
I need this because I am making a game, and I need a pointer to a sprite, base on a switch(ID_Piesa) selected from multiples sprites;
If there is another way, can you tell me?