Spawning prefabs randomly on top of existing tiles
Good day everyone! I'm currently in the process of building a 2D Game, and as for my next step I'd like to randomly spawn collectable gems (prefabs) on top of my tiles for the player to collect. My...
View ArticleHow can I randomise location of objects in a room?
Hi guys. What Im trying to do in the room I've created for the game is to have a desk randomly located in different locations in the room but to also have objects that may go inside or on top of the...
View ArticleSpawn prefab randomly over polygon collider 2d
I have attached pollygon collider 2d on this gameObject. ![alt text][1] This gameObject is parent of another gameObject (just small circle). **I want that small circle to randomly spawn somwhere on...
View ArticleCounter is increased according to the amount target while i only clicked 1...
So i was making an Aimlab mockup and made a counter variable to store how much target i clicked in the span of time i had. The game is pretty much done, so when i clicked one of the target it will move...
View ArticleHow to spawn a prefab randomly only once
I'm working on a small game, where the player has to find their home. Ideally the house would spawn at a new location every time the game is played. I am new to coding so I'm not sure if what I have...
View Article