Search found 6 matches

by grodt
Sun Nov 30, 2014 5:40 pm
Forum: Support and Development
Topic: Trying to change my enemy's image when collision detected
Replies: 3
Views: 2852

Re: Trying to change my enemy's image when collision detecte

bobbyjones wrote:Um hello it will be a lot easier if you attached a .love so that we can run the game easier.
I updated the post to include the love file download. The uploading via attachment was not working.

Link: https://docs.google.com/uc?authuser=0&i ... t=download
by grodt
Sun Nov 30, 2014 7:56 am
Forum: Support and Development
Topic: Trying to change my enemy's image when collision detected
Replies: 3
Views: 2852

Trying to change my enemy's image when collision detected

I have "Boss" class, and its got properties defined for its default image and hit image. On the collision detction function I have, I start off with setting the boss.image to its default image, and then in the loop for the collision detection, if detects a hit, it changes boss.image to equ...
by grodt
Fri Nov 21, 2014 4:57 am
Forum: Support and Development
Topic: How can I make my bounding box collision detection better?
Replies: 8
Views: 7421

Re: How can I make my bounding box collision detection bette

You could cycle through the image for certain pixels at x,y coordinates which can be cpu intensive or use a specific color and test it against the bullets color since the background of your image is clear it it will pass through the image until it reaches the threshold color. enemy.bounds = {153, 2...
by grodt
Thu Nov 20, 2014 6:21 pm
Forum: Support and Development
Topic: How can I make my bounding box collision detection better?
Replies: 8
Views: 7421

How can I make my bounding box collision detection better?

I drew on top of the image the blue parts. I have a bounding box around the Android guy, but what bothers me is that all my graphics will have to be drawn in a square style. As you can see, if I shoot on the bottom left/right areas, the bullet will stop as it collides with the box, but it looks bad ...
by grodt
Sun Oct 19, 2014 4:56 pm
Forum: Support and Development
Topic: Cant figure out why im getting 30 FPS
Replies: 3
Views: 3027

Re: Cant figure out why im getting 30 FPS

I found out last night before the thread got approved, but the issue is related to "vsync". Members on IRC told me to add "love.window.setMode(800, 600, {vsync = false})" to the top and this made my fps jump to around 500. I was told I have to fix my drivers. Thanks!
by grodt
Sun Oct 19, 2014 4:48 am
Forum: Support and Development
Topic: Cant figure out why im getting 30 FPS
Replies: 3
Views: 3027

Cant figure out why im getting 30 FPS

All I am doing is drawing simple stuff, text and squares and its getting around 30-33 fps http://hastebin.com/gizoxoloje.rb -- global vars screen_width = love.graphics.getWidth() screen_height = love.graphics.getHeight() stage = 0 -- Creating tables Level_One = {} Player = {} StartScreen = {} Bullet...