Search found 7 matches

by SlyXPG
Thu Jun 04, 2020 5:48 am
Forum: Games and Creations
Topic: H0ard3() - a top-down wave-based shooter
Replies: 6
Views: 11382

Re: H0ard3() - a top-down wave-based shooter

Updated this to LÖVE 11.3, also small gameplay changes.
Hoard.love.zip
(10.8 MiB) Downloaded 413 times
by SlyXPG
Tue May 19, 2020 7:52 pm
Forum: General
Topic: Trouble with multiple enemies
Replies: 11
Views: 13483

Re: Trouble with multiple enemies

...Yup. As soon as you get past the basics, making a platformer involves a whole slew of annoying problems. I haven't personally solved the moving platform problem myself, but here are some ideas: Update your moving platforms before your player. Each platform needs a list of objects sitting on it, ...
by SlyXPG
Tue May 19, 2020 5:54 am
Forum: General
Topic: Trouble with multiple enemies
Replies: 11
Views: 13483

Re: Trouble with multiple enemies

Hahaha, no worries! You don't want to see my code from a couple years ago. Cleaning up code is actually quite fun, I'm glad I could help a bit at the same time. :P Figuring out how to organize stuff is the hardest part. Good luck! Organisation is definitely not my strong suit, I think getting bette...
by SlyXPG
Sat May 16, 2020 6:49 pm
Forum: General
Topic: Trouble with multiple enemies
Replies: 11
Views: 13483

Re: Trouble with multiple enemies

Oh, yeah, you're adding a new timer for every enemy every frame. That will definitely cause issues. You just want them to jump every 3 seconds, right? So you just need a repeating, 3-second timer that tells the enemy to jump, and only cancel it when the enemy dies. Hump.timer has Timer.every for th...
by SlyXPG
Sat May 16, 2020 3:14 am
Forum: General
Topic: Trouble with multiple enemies
Replies: 11
Views: 13483

Re: Trouble with multiple enemies

The most basic way to debug things is to and add `print()` statements to your code where you think thing's might be going wrong and run it with a console open. You know that jumping is messed up, so add some prints to your jumping code. In this case, I added `print("startJump", v)` and `p...
by SlyXPG
Fri May 15, 2020 10:54 pm
Forum: General
Topic: Trouble with multiple enemies
Replies: 11
Views: 13483

Re: Trouble with multiple enemies

Not sure why this attachment didn't show up but this is with multiple enemies spawned multiple.gif Also a snippet of my enemy jump function function enemyJump() for k,v in pairs(enemy) do enemyTimer:after(3, function() v.jumping = true enemyTimer:after(0.00001, function() v.jumping = false enemyTime...
by SlyXPG
Fri May 15, 2020 5:46 am
Forum: General
Topic: Trouble with multiple enemies
Replies: 11
Views: 13483

Trouble with multiple enemies

Hi, I'm currently creating a platformer/rpg game to develop better skills with programming. My current issues is with multiple enemies, when I have one enemy spawned, everything works as intended, but if I spawn more than one, they start going nutty. One enemy spawned one.gif I'm not sure where the ...