how do Digging game like Dig Dug

0 favourites
  • 10 posts
From the Asset Store
Dig Up The Way is a fun and challenging physics game where the goal is to dig holes to make the balls roll to their dest
  • this link explain all

    youtube.com/watch

    so how do i digged paths?

  • on press button - is facing & touching block - Destroy block?

  • Hi Ghost yeah but this need lot of small sprites

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • make a sprite, not destroy it

  • DigDugExperiment.capx

    This is just the inkling of an idea, but I'm thinking Canvas can help. I've just got solids here, but you can paste in textures. That's the digging taken care of. For enemy AI, I'm thinking a combination of more hidden canvas layers & node deposits on direction changes. You can use flood fill to see if the enemy can reach the player or not, and then with help of maybe flood again and/or the nodes as helpers for finding routes to the player, you can do your own path finding.

  • blackhornet hi, i see this is experiment i try add some platform behavior sprite but i need solids, hmm im wonder how do it because when whole canvas is a solid Playersprite dont want to walk ;p

  • I don't see any of C2's behaviours working for this. That's why I was suggesting old-school flood-fill & custom path-finding. Otherwise, lots of little blocks, or compromise with a grid-based system.

  • blackhornet   OK thanks for your support

  • Rather than removing the blocks, I think dig-dug actually drew the tunnels over the dirt textures.

    Would save you from drawing thousands of tiles, Just make your dirt in one layer, and have your player and ready made tunnels in another layer so it draws on top of the dirt.

    When the player moves off a tunnel tile have it draw another tunnel tile in the direction the player is facing.Then you will have a digging effect, and you wont need as many collision sensors. Just have the collision sensor on the player and monsters to make sure they are on the tunnel tiles. When the monsters are over the diet tiles either have them draw more tunnels in front of them (dig), or turn into the "ghost eyes" as they are floating under the dirt like the arcade game.

    TL;DR, paint tunnels OVER the dirt, do not remove the dirt...

    Hope that makes sense :D

  • delgado there's a lemmings example capx in the forums, could help as a start

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)