Digging

Post Reply
User avatar
Electric cat
Posts: 81
Joined: Sun Oct 07, 2018 4:09 am

Digging

Post by Electric cat » Thu Apr 04, 2019 10:52 pm

Hello all,

I was thinking on adding a shovel to dig with in my game and thought Hmm how would that work?

the Shovel would be and extra weapon (effect) then it would have to connect to a tile type so when you got the right tiles so I guys it could be used as a breakable block ? But I would like it where you can walk over it like in Legend of zelda strike it with your shovel to reveal a prize.

So you would have to turn solid collision off for the block? But then what issues would that create?

Thanks for reading
User avatar
rimoJO
Posts: 244
Joined: Sat Jan 12, 2019 2:23 am
Location: Planet Earth

Re: Digging

Post by rimoJO » Fri May 10, 2019 7:54 pm

i don't know...
Mystery Game status: Currently at least one in development. Stay tuned!
User avatar
Bucket Mouse
Posts: 323
Joined: Wed Mar 07, 2018 2:25 am

Re: Digging

Post by Bucket Mouse » Sat May 11, 2019 7:02 am

You're on the right track. It would simply be a breakable block but both states would be non-solid. You'd map the shovel to a button; the code would say that if you pressed the button over that specific tile, the tile would change to the "Dug" version. This would take some ASM tinkering, especially if you want prizes to appear at random -- that'd be more complicated.

Note that the holes you dig would undo themselves if you walked offscreen, but that was the case in Zelda too.
Post Reply