Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Inventory and Card Types

Throughout the week what I've come across is mainly with the making of the specified cards for card hand testing and the inventory. Mainly throughout the week what has been happening is the player grabbing the cards and when they grab the card they can still be the same card and on top of being a random card still its still the same card as the other ones in the map and doesn't change. 

Mainly the way i have been able to go fix this issue is that when i make the card pick up there made from what was a scriptable object and when i make a card i automatically make a new scriptable object so i don't need to constantly make more scrip table's and because of this it made it hard to make it specific since i chose to randomize it. What i did was made a copy of the script for a different copy of the same card pickup so that when i pick it up i can chose the card by making a scriptable object in advance with the card of what i want it to be and take out the randomization part of the function and this makes it so it had less code to worry about and can grab all the information that the card hand functions can use but also can not interfere with the cards in the map.

author: Anthony Perez

Posted on 04/12/2024

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.