Search found 2 matches
- Wed Oct 14, 2020 12:25 pm
- Forum: Support and Development
- Topic: Having trouble randomizing simple tilesets
- Replies: 5
- Views: 4922
Re: Having trouble randomizing simple tilesets
Hi, welcome to the forums. You're setting a variable to a random number, and then using that number multiple times in your map. This means that you're not actually generating a different number per tile; that would require calling the random function once per tile. For brevity, I suggest this: func...
- Wed Oct 14, 2020 1:05 am
- Forum: Support and Development
- Topic: Having trouble randomizing simple tilesets
- Replies: 5
- Views: 4922
Having trouble randomizing simple tilesets
Hello! I'm new to love2d, and to this forum. I followed this tutorial https://love2d.org/wiki/Tutorial:Gridlocked_Player and now i want to create random simple tilesets (is that the term?). I used math.random, but I've been having trouble. It's not as... randomized as I want it? I'm not sure how to ...