Drawing help
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: Drawing help
So... box:draw() is empty. Shouldn't you put the stuff you want to draw in there?
Help us help you: attach a .love.
Re: Drawing help
Well I did, but it's now going to be in TurretLaser:draw() It makes sense I believe. Because the laser is seperate from the turret, but belongs with it. Much like how Maurice did the bulletbill.luaRobin wrote:So... box:draw() is empty. Shouldn't you put the stuff you want to draw in there?
Re: Drawing help
This might sound stupid.. but how?
I'm not sure how to call it. I though of doing what was in game.lua, the
for j, w in pairs do
w: draw()
end
But would that work for the TurretLaser?
I'm not sure how to call it. I though of doing what was in game.lua, the
for j, w in pairs do
w: draw()
end
But would that work for the TurretLaser?
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Drawing help
This isn't working. I feel like we're communicating on different wavelengths.
Can someone else please help TurtleP?
Can someone else please help TurtleP?
Help us help you: attach a .love.
Re: Drawing help
its "laserimg" not "lazerimg"
solved!
solved!
Re: Drawing help
I know its laserimg. *facepalm*kraftman wrote:its "laserimg" not "lazerimg"
solved!
I need to call TurretLaser:draw() somehow don't I? Then I can draw the laser for the turret. That's the point. Box:draw() could work, but also, how could I increase the x value of the laser? (Probably in box:updaterange() or something)
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 225 guests