Log In  
Follow
Left Lane

Cart #feyikimuho-1 | 2024-05-13 | Code ▽ | Embed ▽ | No License


Hello! (Again...) I am working on a 2D platformer, based off of the Nerdy Teachers tutorial. In my previous post, I asked for assistance coding enemies, and you guys really helped! (Thank you jasondelaat!)

I have since ran into more problems. I'm wondering how I could implement multiple enemies, as my code now only has one frog enemy that can be moved around; Is there a way that I can have multiple frogs that piggy-back off of the same code? Or is the only way is to have separate tabs of code for each individual enemy? I'd love to hear your guy's solutions to this problem! Feel free to look under the hood and check out the code for yourself!

Another problem I have encountered is the "run button" as of now, it just increases the speed of the character (shown by the counter above the player) I would like to implement a system similar to most platformers, where the longer you hold down the run button while moving, the faster you go, with a max speed cap. I tried to attempt this earlier, but it was buggy, and you could build up speed by standing still and holding the button. I'm sure you guys can come up with better code than me.

[ Continue Reading.. ]

2 comments



Cart #gibuyeyak-0 | 2024-01-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

Hello! I was working on a 2D platformer, and I was wondering about how to make enemies. The cartridge that is attached above (I hope it is attached) shows a small demo of the game thus far.

(NOTE: this is based off the Nerdy Teachers 2D platformer tutorial)

As you can see, there is collision, semisolid platforms and even some spikes that can kill the player however, I am focused on the "frog" on the middle left platform. So far I have gotten it to walk forward and change directions when hitting sprite 2 (left turns) and sprite flag 3 (right turns). But I cannot for the life of me get the frog sprite to flip when turning. More importantly I cannot get the frog to kill the player like the spikes do. If you have any ideas or advice about the enemies or just in general please crack open my code and take a look.

[ Continue Reading.. ]

1
6 comments



So I recently had an idea for a pet game on PICO-8 akin to Tamagotchi, or nintendogs. where you take care of pets, and you would use a cursor and buttons. My ideas was to have 2 main areas, one area for just watching and feeding your pets, another for mini games and for training your pet. My idea was once you feed a certain pet enough it would lay an egg and give you more pets My idea for the mini games would be something simple like button mashing or something easy to do. I'll also have to figure out how to make the pets move around on their own (I already have the pet sprites). I'm still pretty new to PICO-8, and have only made short top-down adventure games, so sorry for my lack of knowledge. Comment how you would go about this idea. Thanks!

P.S if I use your code or ideas I'll give you full credit where it's due.

2
1 comment