Im really confused on all the tutorials so far an I wondering if anyone could help
I need enemies to spawn anywhere between x = -64 and x = 664
every 1 - 5 seconds
in groups of 1 - 10 (all in random spots between x = -64 and x = 664)
going a number between .8 and 1.2 times player.y *-1 example (player.y * .846) * -1
and the image to be resized from .8 time bigger to 1.2 times bigger
I know this is alot but if someone could tell me the code and where to put it i would be forever greatful
Enemies spawn
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Enemies spawn
What is your code so far? (Please upload as a .love)
These things are very simple to write, and I'm willing to walk you through this, but it helps if I know where we start.
These things are very simple to write, and I'm willing to walk you through this, but it helps if I know where we start.
Help us help you: attach a .love.
Re: Enemies spawn
this there an easier way to talk, like an im?
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Enemies spawn
LÖVE has an IRC channel (#love@irc.oftc.net). I'm not currently online there, but someone else willing to help you may be.lolsasory wrote:this there an easier way to talk, like an im?
Here's a start:
Code: Select all
baddies = {}
function spawnbaddie()
baddies[#baddies+1] = {x = math.random(-64, 664), imgscale = math.random() * 0.4 + 0.8}
end
Help us help you: attach a .love.
Who is online
Users browsing this forum: No registered users and 4 guests