Search found 477 matches

by MadByte
Wed Jan 17, 2018 5:20 pm
Forum: Support and Development
Topic: Enemies, obstacle's, power ups, life's and health bar (help)
Replies: 10
Views: 638

Re: Enemies, obstacle's, power ups, life's and health bar (help)

You just iterate through the second object layer. Add another loop to iterate through all layers and to update and draw your objects. Some more things I noticed: You don't indent your code. Proper line indention would make your code much more readable and easier to debug. love.graphics.draw(player.i...
by MadByte
Sat Jan 13, 2018 8:06 pm
Forum: Support and Development
Topic: Enemies, obstacle's, power ups, life's and health bar (help)
Replies: 10
Views: 638

Re: Enemies, obstacle's, power ups, life's and health bar (help)

soo every time I do it, It just comes as an error would it be ok to just give a .zip :) p.s. im doing everything right it just says make sure main.love is at the top it is at the top I swear I suppose you mean "main.lua" ? All you have to do is selecting the files and directories in your project fo...
by MadByte
Sat Jan 13, 2018 7:05 pm
Forum: Support and Development
Topic: Enemies, obstacle's, power ups, life's and health bar (help)
Replies: 10
Views: 638

Re: Enemies, obstacle's, power ups, life's and health bar (help)

ShadowPenguins wrote:
Sat Jan 13, 2018 6:59 pm
Yeah but im very new and don't really know how to do a .love I will when i learn how to.
It's not that difficult.
The wiki in general is a great resource to learn all kinds of stuff about LÖVE.
ShadowPenguins wrote: haha i have trouble with life/health because i keep getting errors
:P
by MadByte
Sat Jan 13, 2018 5:59 pm
Forum: Support and Development
Topic: Enemies, obstacle's, power ups, life's and health bar (help)
Replies: 10
Views: 638

Re: Enemies, obstacle's, power ups, life's and health bar (help)

Killing an actor There are many ways to "kill" an actor in a game. One would be to set the x and y position outside the visible screen area and reuse the table (and reset x,y) if the actor is alive again. Another and imho better solution would be to add an instance of an actor to a separate "world"...
by MadByte
Tue Jan 09, 2018 10:35 pm
Forum: Support and Development
Topic: Garbage collector stops the game[or probably disk access]
Replies: 9
Views: 502

Re: Garbage collector stops the game

Impressive numbers. Not sure how you achieved them. Probably that's because not many modifications are done to each vertex data? I've made a couple of test projects, drawing overlapping half-transparent 16x16 random tiles with modified colors (which correspond game rendering of several block layers...
by MadByte
Sun Jan 07, 2018 4:49 pm
Forum: Support and Development
Topic: Garbage collector stops the game[or probably disk access]
Replies: 9
Views: 502

Re: Garbage collector stops the game

Actually, I'm slightly feared that even after all the optimizations, and offloading to threads, and other complicated tricks, at some moment I'll be forced to make a choice between abandoning the project or rewriting it in a language with more pluses in its name, and all the current efforts will be...
by MadByte
Fri Jan 05, 2018 7:23 pm
Forum: Support and Development
Topic: Syntax error, I have no idea where it is
Replies: 1
Views: 168

Re: Syntax error, I have no idea where it is

Seriously? I explained what your problem is in your first thread... multiply times. And now you open another thread and ask the same question again? Maybe you haven't seen it.. so here is the answer..again. Your line local map = setmetatable(love.filesystem.load('st_i/sti/map.lua')(), Map) seems to ...
by MadByte
Thu Jan 04, 2018 6:29 pm
Forum: Support and Development
Topic: Trying to load a Tiled map with STI
Replies: 15
Views: 426

Re: Trying to load a Tiled map with STI

Here's the Winrar file. i hope this is the one (this was before i made some of the changes) (also im bad at drawing) No worries, I don't care about how your sprites look like. Well, your code had so many problems that I don't even know where to start. I just can repeat myself: Start by learning the...
by MadByte
Thu Jan 04, 2018 8:44 am
Forum: Support and Development
Topic: Trying to load a Tiled map with STI
Replies: 15
Views: 426

Re: Trying to load a Tiled map with STI

Sorry, didn't answered because my computer seems to have problems with STI. It just works if I run the project in my code editor directly. Same code as zip doesn't work, but it's not a path problem because the file has been found. Seems to be a problem with STI that has to be investigated. Your file...
by MadByte
Wed Jan 03, 2018 6:41 pm
Forum: Support and Development
Topic: Trying to load a Tiled map with STI
Replies: 15
Views: 426

Re: Trying to load a Tiled map with STI

You can upload files on the forum next time, there is an attachments tab below the (full) text editor box.
If possible create an *.love file as stated here and upload it.
Also your mediafire folder just contains an mp3 song. You might want to double check that :)