Search found 533 matches

by MadByte
Sun Jun 16, 2013 4:19 pm
Forum: Support and Development
Topic: Works with one thing but not the other?
Replies: 30
Views: 11904

Re: Works with one thing but not the other?

Why not simply reset the angle to 0 when it get's bigger then 360 ?
by MadByte
Wed Jun 12, 2013 5:42 pm
Forum: Support and Development
Topic: [Not Solved] Bullets Collide With Entities?
Replies: 12
Views: 7683

Re: Bullets Collide With Entities?

There seems to be much more problems then the "if self.health >= 0 then" loop.
Sadly I'm not really familiar with this kind of object creation. :(
by MadByte
Sun Jun 09, 2013 6:27 pm
Forum: Support and Development
Topic: Can anyone help me with simple Tile Collisons?
Replies: 7
Views: 2920

Re: Can anyone help me with simple Tile Collisons?

hm I didn't updated the post, in the .love I included above I tried this : -- Move the player if left and not right then newx = newx - self.xVel * dt if not collision(newx, player.y) then player.x = newx end elseif right and not left then newx = newx + self.xVel * dt if not collision(newx + player.w...
by MadByte
Sun Jun 09, 2013 10:06 am
Forum: Support and Development
Topic: Can anyone help me with simple Tile Collisons?
Replies: 7
Views: 2920

Re: Can anyone help me with simple Tile Collisons?

I don't want to create a new topic for this: I'm also trying to apply collision, but I use a img to load my map and got this so far: function player:move(dt) local newx, newy = player.x, player.y if left and not right then newx = newx - self.xVel * dt if not collision(newx, player.y) then player.x =...
by MadByte
Fri Jun 07, 2013 7:28 pm
Forum: General
Topic: Image help
Replies: 3
Views: 2475

Re: Image help

by MadByte
Wed Jun 05, 2013 6:37 pm
Forum: General
Topic: BaconGameJam 05 | June 7th - 9th | 22:00 UTC
Replies: 11
Views: 3247

Re: BaconGameJam 05 | June 7th - 9th | 22:00 UTC

not sleeping? :o I actually participate but I will sleep, going to friends & such things. I can't be focused on coding for more then 3-4 hours. So I won't try it :) Hopefully there is a chance to finish a game anyway. Are you guys going to use own pre-coded snippets for the jam ? ( i.e fadingcla...
by MadByte
Tue Jun 04, 2013 3:43 pm
Forum: Support and Development
Topic: [Solved] Save\Load without using libraries
Replies: 7
Views: 2052

Re: [Not Solved] Save\Load without using libraries

yesterday there was a similar thread about that.
Here
by MadByte
Tue Jun 04, 2013 3:37 pm
Forum: Games and Creations
Topic: [wip] Cheese Defender
Replies: 12
Views: 9489

Re: [wip] Cheese Defender

My first score was 1580, arr.. :D Good job so far, I didn't encountered any bugs, the mechanics work & the code is readable. The gameplay itself isn't that compelling right now, but you're on a good way. :) I look forward to try it again with your planned features in! edit: one simple idea.. you...
by MadByte
Mon Jun 03, 2013 4:30 pm
Forum: Support and Development
Topic: Compare multiple var's at the same time
Replies: 3
Views: 1612

Re: Compare multiple var's at the same time

Thanks kikito.
Great function !

I didn't expected this problem is that hard to solve :D
by MadByte
Mon Jun 03, 2013 4:15 pm
Forum: Support and Development
Topic: Compare multiple var's at the same time
Replies: 3
Views: 1612

Compare multiple var's at the same time

Hi, simple question. I'm searching for a good way to compare the output of getPixel with my vars. I tried this one: r, g, b, a = img:getPixel( x, y ) if r, g , b, a == 255, 0, 0 , 255 then -- do stuff end I thought this would work because declare vars like that also work. I know that this .. if r = ...