Search found 21 matches

by Cookie10monster
Tue Sep 08, 2015 2:47 pm
Forum: Support and Development
Topic: Collision with rectangle freezes player?
Replies: 6
Views: 3955

Re: Collision with rectangle freezes player?

Where your code does function CheckCollision(x1,y1,w1,h1, x2,y2,w2,h2) return x1 < x2+w2 and x2 < x1+w1 and y1 < y2+h2 and y2 < y1+h1 end change it to return x1 <= x2+w2 and x2 <= x1+w1 and y1 <= y2+h2 and y2 <= y1+h1 end It might be that your character is going into the wall because you are using <...
by Cookie10monster
Sat Jul 04, 2015 12:00 am
Forum: General
Topic: How i put Collision in my Game?
Replies: 7
Views: 3878

Re: How i put Collision in my Game?

First off, this should go in support and development, but that's beside the point. I would recommend using either the bump library, which I haven't used but have heard good things about, or using AABB collision detection. AABB collision detection is fairly simple for rectangles and circles. For rect...
by Cookie10monster
Fri Jul 03, 2015 11:46 pm
Forum: Support and Development
Topic: Jet trail...
Replies: 2
Views: 1934

Re: Jet trail...

I would recommend using a particle system, which is actually very useful in LOVE.
Just look up love2d particle system on the wiki :)
by Cookie10monster
Tue Jun 30, 2015 5:18 pm
Forum: Support and Development
Topic: Help turning a drawable name into a string.
Replies: 4
Views: 2495

Re: Help turning a drawable name into a string.

tostring just printed "image", but I am working on the second option. Thank you!
by Cookie10monster
Tue Jun 30, 2015 4:07 pm
Forum: Support and Development
Topic: [SOLVED]Having trouble spawning mobs
Replies: 11
Views: 5596

Re: [SOLVED]Having trouble spawning mobs

I found the problem, it was with how I found the position of the mob... Thank you all!
by Cookie10monster
Tue Jun 30, 2015 4:05 pm
Forum: Support and Development
Topic: Help turning a drawable name into a string.
Replies: 4
Views: 2495

Help turning a drawable name into a string.

Hello, I am working on a game and I want to have it so that when you mouse over an item in your inventory, it tells you what it is. Currently, I have all the items in the Inventory as drawables. ex. Inventory.item[1] = Stone (stone is a drawable). I think I need to move away from this system and fin...
by Cookie10monster
Wed Jun 17, 2015 7:36 pm
Forum: Support and Development
Topic: [SOLVED]Having trouble spawning mobs
Replies: 11
Views: 5596

Re: [HELP]Having trouble spawning mobs

Anybody understand the problem?
by Cookie10monster
Mon Jun 15, 2015 7:29 pm
Forum: Support and Development
Topic: [SOLVED]Having trouble spawning mobs
Replies: 11
Views: 5596

Re: [HELP]Having trouble spawning mobs

Positive07 wrote:So... where is the .love?
Whoops! It looks like it didn't upload it correctly or something. My bad. The .love in the post is the new one. Thanks!
by Cookie10monster
Sun Jun 14, 2015 4:32 pm
Forum: Support and Development
Topic: [SOLVED]Having trouble spawning mobs
Replies: 11
Views: 5596

Re: [HELP]Having trouble spawning mobs

can you make different files .lua inside your main folder example: main.lua , player.lua, enemy.lua, map.lua..etc It will be a lot easier to read and fix You're right, its a lot more organized with different things in different files. Not everything is in its own .lua, but I hope this helps. The co...
by Cookie10monster
Sun Jun 14, 2015 12:28 am
Forum: Support and Development
Topic: [SOLVED]Having trouble spawning mobs
Replies: 11
Views: 5596

Re: [HELP]Having trouble spawning mobs

Thanks for the replies, the info is good to know. However, this doesn't solve the original problem. Any ideas?