Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Coding help

A topic by CodeSkull created Jan 23, 2021 Views: 158 Replies: 2
Viewing posts 1 to 3
(1 edit)

Ok so i have multiple different objects but one of them hurts the player instead of the enemy. I want the cards to swap locations every time the scene reloads so that the player doesnt know which card is the bad card. does anyone know how to do that? Im using unity

No idea how to code - What engine are you using?

Submitted

Are you using unity? One simple idea: make an array/list of Vector positions possible for the cards and then use a random number generator to assign the cards to spots in the Start() method.