Search found 491 matches

by baconhawka7x
Mon Dec 19, 2011 3:04 am
Forum: General
Topic: Am I Waisting My Time?
Replies: 8
Views: 5271

Am I Waisting My Time?

I do the art, and coding for Sock Munkee Modding(I don't expect you to know us lol). We mod minecraft. Basically I started doing texture packs in minecraft, which overtimer urged me to start modding minecraft. I never really understood the code, mostly just changed variables and such. Then I heard a...
by baconhawka7x
Mon Dec 19, 2011 2:41 am
Forum: Support and Development
Topic: drawing multiple enemies[SOLVED]
Replies: 12
Views: 3972

Re: drawing multiple enemies.

try adding them to a table and use ipairs like so zombies = {} zombie = { x = 300, y = 500, speed = 100, color = "255, 255, 255", health = 10, pic = love.graphics.newImage("pics/zombie.png"), reach = 55, damage = 2} --now add the zombie table.insert(zombies, zombie) --now do wha...
by baconhawka7x
Mon Dec 19, 2011 2:27 am
Forum: Support and Development
Topic: drawing multiple enemies[SOLVED]
Replies: 12
Views: 3972

Re: drawing multiple enemies.

Ok I'm so lost. That all looks very foreign to me. I don't even know where to start with questions.
Like..

Code: Select all

for i, z in pairs(zombie) do
  z:update(dt)
end
wheres the z coming from? and the I? and what does "inpairs" mean, and why is zombie in parenthasis?D:
by baconhawka7x
Mon Dec 19, 2011 1:32 am
Forum: Support and Development
Topic: drawing multiple enemies[SOLVED]
Replies: 12
Views: 3972

drawing multiple enemies[SOLVED]

Yay! i'm getting pretty far in my game thanks to the forums. But i noticed if i try to spawn more than one zombie in a map that they are all really just duplicates of the original zombie. so if i hit one, they all react. I made a table for my zombie with all of the zombie's properties in it, it look...
by baconhawka7x
Sun Dec 18, 2011 8:46 pm
Forum: Support and Development
Topic: limiting attack speeds.
Replies: 2
Views: 1751

limiting attack speeds.

I am making progress on my rpg, and i just started working on my enemies. I have mostly everything down, but I am stumped. How should i limit the attack speed of the zombie? heres the code of how he attacks him, but if i use this, the zombie attacks everyframe. if zombie.x > steve.x and zombie.x < s...
by baconhawka7x
Sun Dec 18, 2011 5:44 am
Forum: Support and Development
Topic: changing a visible number?
Replies: 7
Views: 2708

Re: changing a visible number?

you can declare a variable in global scope and print its contents using love.graphics.print(experience,400,400) in love draw if you want to delete an image you can just not draw it or reference it to a transparent image If the number is changed after it's been drawn, can u see it on the screen?
by baconhawka7x
Sun Dec 18, 2011 4:36 am
Forum: Support and Development
Topic: changing a visible number?
Replies: 7
Views: 2708

changing a visible number?

I was wondering if there was a way to print a number on the screen, and change it accordingly. I plan to use this for the xp bar and enemy health, Should it be a string? should it just be a number? I dont know! but i hope someone does and that they can tell me:D also if there was a way to delete an ...
by baconhawka7x
Sat Dec 17, 2011 7:11 pm
Forum: Support and Development
Topic: Making a tile-based RPG.
Replies: 0
Views: 1487

Making a tile-based RPG.

I am making a tile-based RPG but there are a few things i have been stuck on. I make my tilemaps with... for rowIndex=1, #town do local row = town[rowIndex] for columnIndex=1, #row do local number = row[columnIndex] love.graphics.draw(tile[number], (columnIndex-1)*TileW, (rowIndex-1)*TileH) end end ...
by baconhawka7x
Wed Dec 14, 2011 11:19 pm
Forum: Support and Development
Topic: some basic tips.
Replies: 5
Views: 1833

Re: 2d tile dungeon taker!(help please!)

What works really depends on the rest of your code, so it would be really hard to say. How I usually do things like that is: love.update(dt) ... other things if love.keyboard.isDown "w" and not jumping then jumping = true timer_jumping = 0 end if jumping then timer_jumping = timer_jumping ...
by baconhawka7x
Wed Dec 14, 2011 11:15 pm
Forum: Support and Development
Topic: some basic tips.
Replies: 5
Views: 1833

Re: 2d tile dungeon taker!(help please!)

Ehm, what is the question here?
i just dont want the player to be able to walk through blocks