I just meant spawn a tree at x = random(0,800) y = random(0,800) if 0 and 800 are the size limits of the layout, in its simplest form. It would pick a random value for x and y i.e. spawn tree at 43,290. It really depends on what you are trying to achieve.
Yeah I understand that part, I think I have a solution, if i just give leeway for the resources height and width so that it doesn't spawn anywhere near the layout's borders. Thank you plinkie :)
I think i should probably learn some more about arrays too, that's another thing i've never quite figured out :)
- If anyone else has any ideas, they're appreciated as there might still be a better way :')