General discussion about LÖVE, Lua, game development, puns, and unicorns.
4 posts • Page 1 of 1
Hi everyone, I have a little problem. When creating a game, he draws 2 barrels which are to move towards the protagonist over time. However, I would like the barrels to generate randomly with a minimal distance between themselves. The problem is that I can't reference the x variable that is being updated. is it possible to somehow funk draw put a delay function to which I will give the time with which the barrels will be drawn?
That was a bit difficult to understand. What is the problem? Do you have trouble with spawning at a minimum distance between barrels? Do you have trouble with delaying the spawn? With both? What does "the x variable that is being updated" mean? What does "funk draw put a delay function" mean?
Users browsing this forum: No registered users and 30 guests