Search found 484 matches

by baconhawka7x
Tue Dec 06, 2011 4:25 pm
Forum: Support and Development
Topic: tile-based scrolling
Replies: 2
Views: 533

tile-based scrolling

I know I know "READ THE TUTORIAL" well i did (sorry im a noob still...) i followed through the tile based scrolling tutorial as best as i could but i was sort of just brainlessly typing code. I didnt understand everything, so i was wondering if someone could help me!:D all help is greatly appreciate...
by baconhawka7x
Sat Dec 03, 2011 6:47 pm
Forum: Support and Development
Topic: Lag.
Replies: 12
Views: 1925

Re: Lag.

thelinx wrote:

Code: Select all

function love.load()
  bigfont = love.graphics.newFont(58)
end

function love.draw()
  love.graphics.setFont(bigfont)
end
thank you so much!:D is that the only thing that is making it lag?
by baconhawka7x
Sat Dec 03, 2011 6:06 pm
Forum: Support and Development
Topic: Lag.
Replies: 12
Views: 1925

Re: Lag.

Ok so how do I NOT load the font every frame?
by baconhawka7x
Sat Dec 03, 2011 12:18 am
Forum: Support and Development
Topic: Lag.
Replies: 12
Views: 1925

Lag.

I noticed if i leave my Love 2d game running for too long the frame rate drops insanely. i'm guessing that it is because of how i organize things? any and all tips will help! This is my main.lua function love.load() love.graphics.setBackgroundColor(255, 255, 255) character = love.graphics.newImage("...
by baconhawka7x
Thu Nov 24, 2011 11:22 pm
Forum: Support and Development
Topic: Bullets!
Replies: 4
Views: 1037

Re: Bullets!

thank you i just have a quick question. Where would i put the table index?
by baconhawka7x
Thu Nov 24, 2011 5:43 am
Forum: Support and Development
Topic: Bullets!
Replies: 4
Views: 1037

Bullets!

I have a part in my game...Um i'll try to describe it..Imagine pong. But replace the two pongs with people that shoot at eachother! I have everything done exept how to shoot. I want the bullets to move at a slow speed, and when they make contact with the enemy the other player will earn a point. So ...
by baconhawka7x
Wed Nov 23, 2011 10:40 am
Forum: Support and Development
Topic: Enemy ai?
Replies: 2
Views: 1179

Enemy ai?

My game is a top-view arcade shooter. you are a redbox and you run around and shoot enemies. That's just the problems. the Enemies...So how would i make an enemy that moves in small circles and shoots the enemy?
by baconhawka7x
Wed Nov 23, 2011 6:21 am
Forum: Support and Development
Topic: Long levels...
Replies: 5
Views: 643

Long levels...

I'm making even more progress on my game thanks to the love forums. I am on my first level, (yes i know lol), I finally figured out how the collision detection process. But theres one thing i dont understand...The game is top-view, I want to make levels (obviously) but the only problem is I do not k...
by baconhawka7x
Wed Nov 23, 2011 5:55 am
Forum: Support and Development
Topic: Main Menu
Replies: 6
Views: 1512

Re: Main Menu

well, to draw the button you would use love.graphics.draw()
then in the function love.mousepressed() you would have to say:

Code: Select all

if x > button.x and
x < button.x + button.img:width and 
y > button.y and
y < button.y + button.img:height then
  --button action
end
[/quote]
thank you soooooo much!!!!
by baconhawka7x
Tue Nov 22, 2011 11:26 pm
Forum: Support and Development
Topic: Main Menu
Replies: 6
Views: 1512

Re: Main Menu

josefnpat wrote:Well, you would draw the button, and if your love.mousepressed x's and y's are within the correct ranges, consider that the "button click" event.
How would i do that? lol sorry..im not the best..