I'm doing a card game where cards are placed in numerical in a horizontal row. They are placed one by one, starting off with just one card but by the end the row can reach up to 66 cards. After a card is placed in the row a new card is dealt to a position below the row of cards and horizontally centered in the window (see image). That card should then be drawn into position. Since the row of cards quickly become wider than the window size I need to find a way to scroll along the row of cards. What is the best way to do this?
Should I make the room size wide enough to fit the full set of cards from the start, or should I keep the room size to the size of the window and instead use an offset_x value to pan the cards. Also, are there and convenient functions or tools I should know of when scrolling across the game surface like this? I'm new to GMS so if there are built in functions that could help me I'd like to know about them.
So far I've been trying to check if the active card is being dragged close to either edge of the window and change the offset_x variable - which in turn affects where each card is drawn. I have some problems with it- maybe I can get it to work but maybe there's a better solution for me to try.
Should I make the room size wide enough to fit the full set of cards from the start, or should I keep the room size to the size of the window and instead use an offset_x value to pan the cards. Also, are there and convenient functions or tools I should know of when scrolling across the game surface like this? I'm new to GMS so if there are built in functions that could help me I'd like to know about them.
So far I've been trying to check if the active card is being dragged close to either edge of the window and change the offset_x variable - which in turn affects where each card is drawn. I have some problems with it- maybe I can get it to work but maybe there's a better solution for me to try.