Search found 81 matches

by buhb11
Wed May 29, 2013 12:27 pm
Forum: Support and Development
Topic: Collison its not working properly !
Replies: 2
Views: 1017

Collison its not working properly !

Hello lovers!

Hey , guys how are you?I am currently working on a platformer game and i cant solve the collison issue. Maybe you could take a look and fix it :)I`d be very grateful ! Cheers!
by buhb11
Thu May 23, 2013 2:10 pm
Forum: Support and Development
Topic: Maps and collisions
Replies: 10
Views: 6490

Re: Maps and collisions

micha wrote:You are currently mixing up two types of collision: Collision of two objects vs. collision of and object with the map.
Sir,you have all my respect!
by buhb11
Thu May 23, 2013 1:36 pm
Forum: Support and Development
Topic: Maps and collisions
Replies: 10
Views: 6490

Re: Maps and collisions

for i=1,#Level.solid.map do if Level.solid.map[i] ~=0 then --collision code if (collision) then break end end end I'm not sure how far you are, and what you can do. But I want you to try to figure out as much as you can. Good point!!I couldn't figure out if you didn't show me this piece of code! I ...
by buhb11
Thu May 23, 2013 1:00 pm
Forum: Support and Development
Topic: Maps and collisions
Replies: 10
Views: 6490

Re: Maps and collisions

What do you already have? Can you draw a level like this: level = { 1,1,1,1,1, 1,0,0,0,1, 1,0,0,0,1, 1,0,0,0,1, 1,1,1,1,1 } This should result in a box. Because if you can't do that, then maybe you should start figuring that out. Yes i aleardy made something like this before and i assigned a tile t...
by buhb11
Thu May 23, 2013 12:21 pm
Forum: Support and Development
Topic: Maps and collisions
Replies: 10
Views: 6490

Re: Maps and collisions

Right now i am working on a platformer game where my player can move smoothely
by buhb11
Thu May 23, 2013 11:29 am
Forum: Support and Development
Topic: Maps and collisions
Replies: 10
Views: 6490

Maps and collisions

Hello lovers! So i made a couple of games in love2d and every time i end up with the same problem ,maps...Let me explain you better what i mean.I`ve tryied many ways in making a map and apply to it collision but every time i faild.One of the methods i used was making an array like this : map = { 0 ,...
by buhb11
Thu May 09, 2013 2:56 pm
Forum: Support and Development
Topic: Project Mining help
Replies: 1
Views: 1012

Project Mining help

Hey lovers !

After i`ve finished my first Side-Scrolling game in Love2d i decide to make a digg game but i cant remove a single tile using the mouse so i am asking your help.

Here is the game so far:
by buhb11
Wed May 08, 2013 8:01 pm
Forum: Support and Development
Topic: Short question about for loop?
Replies: 5
Views: 1653

Re: Short question about for loop?

Germanunkol wrote:Glad I could help! :)

Try to encapsulate your code in code tags when you post here, it'll look much better and will be easier to understand.

Ok!
by buhb11
Wed May 08, 2013 7:09 pm
Forum: Support and Development
Topic: Short question about for loop?
Replies: 5
Views: 1653

Re: Short question about for loop?

Yes thx ! I just solved on my own using this: world = {} table.insert(world , {x = 0 , y = 0 , width = 20 , height = 20}) function world:draw() for i,v in ipairs(world) do for i = 0 , #world+love.graphics.getWidth()-v.width, 1 do love.graphics.rectangle("fill",v.x+i,v.y,v.width,v.height) e...
by buhb11
Wed May 08, 2013 6:19 pm
Forum: Support and Development
Topic: Short question about for loop?
Replies: 5
Views: 1653

Short question about for loop?

Hello lovers!

I want to draw tiles like in the picture below using for loop i`ve tryed so far this:
Untitled.png
Untitled.png (424 Bytes) Viewed 1653 times
for i = 0 ,50,1 do
love.graphics.draw(...)
end

But its not working...