Thank you. read through both the bumb.lua and the hardoncollider.lua
Thanks for your help. <3
Search found 24 matches
- Tue Oct 28, 2014 4:53 pm
- Forum: Support and Development
- Topic: Table Spawning and Collision
- Replies: 2
- Views: 2353
- Fri Oct 24, 2014 5:04 pm
- Forum: Support and Development
- Topic: Table Spawning and Collision
- Replies: 2
- Views: 2353
Table Spawning and Collision
function zombie_spawn(x,y,id) table.insert(zombie, {x = x, y = y,id = id}) end function zombie_draw() for i,z in ipairs(zombie) do love.graphics.draw(zombie.pic,z.x,z.y) end end function zombie_move(dt) for i,thisZombie in ipairs(zombie) do local dx,dy = thisZombie.x - player.x - pw, thisZombie.y-p...
- Thu Aug 14, 2014 9:03 pm
- Forum: Support and Development
- Topic: True False Statments
- Replies: 6
- Views: 3819
Re: True False Statments
well metal methods looks to confusing and complicated. i dont have mcuh time to learn this since schools starrting up again so ill try the function. thanks for the help everyone
- Thu Aug 14, 2014 8:36 pm
- Forum: Support and Development
- Topic: True False Statments
- Replies: 6
- Views: 3819
Re: True False Statments
well like thats close but like i want it to like make everything else false when its right. not just like happen when everything else is false and its right. like its hard for me to describe.
- Thu Aug 14, 2014 6:28 pm
- Forum: Support and Development
- Topic: True False Statments
- Replies: 6
- Views: 3819
True False Statments
is there a way say when this variable is true then these variables can never be true during the time this one is true. Sorry if that is confusing. and sorry that this may seem like a simple question but i cant seem to think up a way to right it. any help would be appreciated.
- Wed Aug 13, 2014 11:50 pm
- Forum: Support and Development
- Topic: Animation
- Replies: 2
- Views: 2306
Re: Animation
o no it was just still showing the default picture for the player. so it looked like he had multiple feet. i just simply removed the default picture everytime teh animation starts
- Sun Aug 10, 2014 1:43 am
- Forum: Support and Development
- Topic: Animation
- Replies: 2
- Views: 2306
Animation
i added animation with the love2d AnAl but it seems like the 1st frame is still there as the 2nd one shows up. im not sure why this is happening but any help will be appreciated.
Edit:
FIXED
Edit:
FIXED
- Sat Aug 09, 2014 11:06 pm
- Forum: Support and Development
- Topic: Subtables in Lua
- Replies: 2
- Views: 2079
Re: Subtables in Lua
thanks a lot. i feel dumb for not knowing that but thanks still.
- Sat Aug 09, 2014 3:31 am
- Forum: Support and Development
- Topic: Subtables in Lua
- Replies: 2
- Views: 2079
Subtables in Lua
well i tried to create multiple sub tables at all in the same level but kept getting this error saying that the very 1st one should have a bracket to close it off even though it already has one. player = { x = 15, y = 15, x_velocity = 0, y_velocity = 0, speed = 500, health = 500, shotgun = { damage ...
- Sun Jul 20, 2014 3:20 am
- Forum: Support and Development
- Topic: Zombie Collision
- Replies: 3
- Views: 1861
Re: Zombie Collision
The left side of the player to the right side of the zombie. pw is playerWidth.
Code: Select all
for i,zz in ipairs(zombie) do
if zz.x == player.x + pw then
zz.x = zz.x
end
end