How to create a Simple Maze game (Preview)

So yeah, I’m being lazy. I know, I know. I’m partway through writing Avoiding Game pt3, so there! I am doing something! Just… not much. So here’s a quick engine for you to play around with while I write up a tutorial to go alongside it. If you have anything you’d like to add, comment and I’ll see what I can do.

Click here to play that thar simple mouse avoider maze related game!

And clicky here to grab the source.

Have a play and see what you can come up with, and keep poking me to write the tutorial. You know I’ll forget!

-->

16 Responses to “How to create a Simple Maze game (Preview)”

  1. tlh Says:

    about the avoiding game, can you teach me how to duplicate the enemy with the level up?

  2. Tazzydevil XIII Says:

    I’m planning on covering that in the forthcoming part 3.

  3. tlh Says:

    thank you!

  4. hunter Says:

    instead of the ‘if (hitTest’ stuff you can just say ‘on (rollover){
    gotoAndStop();
    }’.

  5. Tazzydevil XIII Says:

    Wouldn’t that only work if the maze was a button?

  6. amonayonamonanous Says:

    yes, there for, make it a button. simple.

  7. Tazzydevil XIII Says:

    Of course, leaving it as a movieclip would allow for further enhancement of the game…

  8. Taylor L Says:

    Here’s one for you, attach the cursor_mc to the mouse so that if the mouse leaves the screen, then it doesn’t just jump to wherever the mouse re-enters the screen. This is a very easy way to cheat at this game lol.

  9. Mushyrulez Says:

    oh yeah put a wall around the edge….

    or else you could just go out then go in =P thats what i did XD

  10. Lloyd Diggins Says:

    Love the Maze game. Recreating levels and everything. Quick question though. When playing the maze i’m finding (like the enemy in the avoiding game) the player when touches just the edge of the wall isn’t actually losing. He has to go further into the wall in order to lose. Is there a way to tighten this up so that any part of the wall he loses?

  11. Tazzydevil XIII Says:

    This is because I’m using shapeFlag hittest so as to allow the maze to be one big movieclip.

    You could hitTest against more than one points using shapeFlag, have a go at changing _x and _y in the hittest :)

  12. Lloyd Diggins Says:

    Thanks for the hittest help. One more thing. I’ve created a level where as you have to rollover a button in order to open another wall. Basically onrollover it shows level3-2, instead of just level3. Can I make my timer cary over from one level to another without restarting?

  13. daniel Says:

    may we open it in microsoft words

  14. Tazzydevil XIII Says:

    Not really…

  15. swiggy Says:

    where is the source.. i open it in CS3 and go to actions and its blank…??

  16. Tazzydevil XIII Says:

    This is an old, old AS2 file. The actions are on the individual objects :)

Leave a Reply