Search found 6 matches

by lordlight7
Fri Mar 02, 2012 5:41 pm
Forum: Support and Development
Topic: How to draw the ground
Replies: 1
Views: 1222

How to draw the ground

I really don't have any idea how to draw my ground in my game.So if i have a 400*200 image and i want the ground in my game to be let's say 2000*200,can i do this somehow?
by lordlight7
Thu Feb 09, 2012 8:13 pm
Forum: Support and Development
Topic: Hardon Collider remove shape
Replies: 5
Views: 2745

Re: Hardon Collider remove shape

i found this on the official site of hardon collider,but i don't know how to "refresh" the collision... Remove a shape from the collision detection system. Note that if you remove a shape in the collide() callback, other shapes might still have collided with it, so the shape will be argume...
by lordlight7
Thu Feb 09, 2012 5:09 pm
Forum: Support and Development
Topic: Hardon Collider remove shape
Replies: 5
Views: 2745

Hardon Collider remove shape

I am using hardon collider to detect my collision. I have a problem in this code: for _,obj in pairs(enemiess) do if atack:collidesWith(obj) then HC.remove(obj) player.health = player.health + 1000 -- just to check if the collision still works end i have a table for enemies,like this,and i tried to ...
by lordlight7
Mon Jan 23, 2012 9:35 am
Forum: Support and Development
Topic: Problem using love.filesystem.read
Replies: 5
Views: 3190

Re: Problem using love.filesystem.read

i also tried with io.read

Code: Select all

io.input("enemies.ini/lua")
enemynumber=tonumber(io.read("*number"))
before posting this

thanks for the help anyway,i will try everything later,no time now ..
+karma :3
by lordlight7
Mon Jan 23, 2012 9:23 am
Forum: Support and Development
Topic: Problem using love.filesystem.read
Replies: 5
Views: 3190

Re: Problem using love.filesystem.read

The 100;200 and 300;400 and 500;600 are the x and y for my enemies.
So how can i parse the line to get something like

Code: Select all

for line in love.filesystem.lines("enemies.ini") do
   enemy = {} 
   enemy.x = ?
  enemy.y = ? 
  table.insert(enemies,enemy)
end
by lordlight7
Mon Jan 23, 2012 8:46 am
Forum: Support and Development
Topic: Problem using love.filesystem.read
Replies: 5
Views: 3190

Problem using love.filesystem.read

I need to read numbers from a text file to load the enemy table.The first number is the number of enemies so i did : enemynumber=love.filesystem.read("enemies.ini") also tried enemynumber=love.filesystem.read("enemies.ini", "*number") -got this from a lua tutorial I get...