Search found 484 matches

by baconhawka7x
Thu Dec 22, 2011 8:51 pm
Forum: Support and Development
Topic: Attacking.
Replies: 2
Views: 421

Attacking.

I have restarted my game(again) and I have come to the point where I need to set the attacks. How should I go about having the player attack the zombie and vice versa. You can find most of my functions at the bottom of tables.lua and the player controlls inside of controlls.lua. I want this to also ...
by baconhawka7x
Wed Dec 21, 2011 9:43 pm
Forum: Support and Development
Topic: Strange Zombies.
Replies: 1
Views: 391

Strange Zombies.

I have set up ways in the past to make the zombie attack the player once it was in a certain range. But ever sence i started my new game for some reason it tends to look very strange when I do..I will put the .love up for download. When I move the zombie towards the player the frame rate starts to l...
by baconhawka7x
Mon Dec 19, 2011 4:47 am
Forum: Support and Development
Topic: drawing multiple enemies[SOLVED]
Replies: 12
Views: 1704

Re: drawing multiple enemies.

So Should I do the same with steve?(My Player?)
by baconhawka7x
Mon Dec 19, 2011 3:04 am
Forum: General
Topic: Am I Waisting My Time?
Replies: 8
Views: 1942

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: 1704

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 what you need to for i,...
by baconhawka7x
Mon Dec 19, 2011 2:27 am
Forum: Support and Development
Topic: drawing multiple enemies[SOLVED]
Replies: 12
Views: 1704

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: 1704

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: 630

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: 870

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: 870

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 ...