Search found 16 matches

by MP6767
Tue Jul 02, 2013 2:04 am
Forum: General
Topic: Yay, view frustum culling!
Replies: 6
Views: 6167

Yay, view frustum culling!

I typed this up in about 5 minutes on my phone. It determines whether to draw something based on its x and y position, as well as the bounds defined by h and w. function Frustum(posx,posy,h,w) if posx > w or posx < 0 or posy > h or posy < 0 then return false end return true end This is useful for ov...
by MP6767
Tue Dec 27, 2011 6:41 am
Forum: Support and Development
Topic: Collision of a Table of Bullets
Replies: 8
Views: 4904

Re: Collision of a Table of Bullets

I am still having problems with the removal of the bodies. Once I remove the bullets and asteroids using the method you described, they are no longer drawn, but they are still present, as I've noticed that other bullet objects keep bouncing off that now-blank-space. To simulate this, I created the ...
by MP6767
Fri Dec 23, 2011 5:16 am
Forum: Support and Development
Topic: Enemy/AI system {Still need help D:}
Replies: 20
Views: 10666

Re: Enemy/AI system

MP6767 wrote: I'm sorry, I'm just lost. What are the x and y properties supposed to be? zombie.x and zombie.y don't work, dt.x dt.y, self.x self.y, zombietype.x, zombietype.y, etc.
by MP6767
Fri Dec 23, 2011 2:19 am
Forum: Support and Development
Topic: Enemy/AI system {Still need help D:}
Replies: 20
Views: 10666

Re: Enemy/AI system

clickrush wrote:I'am sorry I just now found your code in one of your replies. Your questions just seemed to be so general that I assumed your a complete beginner like me. Looking at the code I don't really get what your doing actually :)

It's okay :awesome:
by MP6767
Fri Dec 23, 2011 1:37 am
Forum: Support and Development
Topic: Enemy/AI system {Still need help D:}
Replies: 20
Views: 10666

Re: Enemy/AI system

Yeah, that's the tutorial I'm using. I'm making a simple game out of it. I know multiple scripting languages already, but I just started learning Lua a few days ago.

To be a bit more clear, I've looked at pretty much all of the tutorials on tutorials on the Wiki.
by MP6767
Fri Dec 23, 2011 1:01 am
Forum: Support and Development
Topic: Enemy/AI system {Still need help D:}
Replies: 20
Views: 10666

Re: Enemy/AI system

That's because you set x and y to 0. Set them to something different (for example using math.random, like you wanted) to put the zombies in other positions. To make them move, change the x and y properties of the zombies in love.update. I'm sorry, I'm just lost. What are the x and y properties supp...
by MP6767
Thu Dec 22, 2011 5:55 am
Forum: Support and Development
Topic: Enemy/AI system {Still need help D:}
Replies: 20
Views: 10666

Re: Enemy/AI system

Sorry for double post, but it works now. Just one problem, it spawns it in the top-left corner of the game screen, not even on the map. I also don't know where to begin on making it move.
by MP6767
Wed Dec 21, 2011 10:40 pm
Forum: Support and Development
Topic: Enemy/AI system {Still need help D:}
Replies: 20
Views: 10666

Re: Enemy/AI system

Robin wrote:That's more like it.

You made a mistake with the variable name. You used zomb, while it should be zombie.
Incorrect parameter type: expected userdata
by MP6767
Wed Dec 21, 2011 9:32 pm
Forum: Support and Development
Topic: Enemy/AI system {Still need help D:}
Replies: 20
Views: 10666

Re: Enemy/AI system

Incorrect parameter type: expected userdata
by MP6767
Wed Dec 21, 2011 8:45 pm
Forum: Support and Development
Topic: Enemy/AI system {Still need help D:}
Replies: 20
Views: 10666

Re: Enemy/AI system

Still getting an error on line 125, line 125 contains what you told me to put in.

Code: Select all

function zombieType:draw()
  love.graphics.draw(zomb, self.x, self.y, 0, 4, 4)
end