I want to make a game sorta like Terraria but I have no clue how to make a way to break items or blocks. Can people help me with this please?
look up sandbox games and if it has me in it my game 2.0 version should have a somewhat inventory system and it alters tilemap at tilemap location of sprite. feel free to use some code or be inspired whatever, just maybe give credit. i hope i helped
If you want to break blocks or tiles, then this could be a potential way to do it.
This will help alot thanks!
Sure Iāve Made A 2D Survival Game Called āPixelBuildā
Do you happen to know how to highlight objects you are breaking? If so can you send the code?
i have a game called pixelplace that could be very useful with the code (weird how similar the names are but you only have so many options of names that describe a game where you build). if you want i can send the code just i am busy now is why i will only send if you need and ask
This code asks which tile youāre breaking:
Hope this helps!
mine isnāt perfect for this but some of the code could be useful
This does help but, because my game has gravity it still mines the way it was originally where it mines the block below you aswell. Sorry for the complaint.
Im sure iāll use parts of it
Thanks lot guys! Thisāll help alot!
No worries! I tried your game (itās really cool) and I observed that problem too. Iāll try to find a way to fix it! (If I end up being able to fix it, then Iāll post the link for the update in a reply to this topic.)
Ok thanks
FINALLY AFTER 3 SLEEPLESS DAYS I CAN now help. I can help you if you want?
Okay, I think I may have found a fix! It only works for grass tiles right now, but it allows for you to mine blocks that youāre hitting all around you. In order to mine below you, you simply hold āBā. I hope this helps!
Yes please!
What do you need help with?
Oh ok thanks ill try help with mining other tiles.