Escape Room Game

Hello!

I’m trying to start my first project after the tutorial (The Start Explorer) , and I figured out that the most simple would be a room escape one. ( no big graphics , animation, just few items and background).

But, I don’t know exactly how to do it.

Do I create invisibles rectangles on the clickeable area? (and then put the tap event and the function).

or do I put the clickeable object and other level and not bended in the background? (different layers).

Or there is a better way?

Which one do you recommend? 

I didn’t started yet, I’m just thinking on how to implmment it.

I know each room (or part of it) would be a scene.

Technically, it would work with both but if you are going to make player collect objects, play animations on/for objects, it would be easier with the clickable object approach.

You would probably make an array for collectable objects and then have all of the child objects collectable by a function and an event listener.

Since this appears to be your very first attempt at a game, I’d take a simple approach, and then build upon it.

As a ‘Escape the room’ concept, I’d start with the following framework.

  1. Display your ‘room’ graphic.

2a) Put some sprites down with events associated with them. (Add a tap or touch listener to a key sprite that you put on a desk.

2b) Add a rect if needed to ‘open a drawer’

  1. Add listeners to the sprites/rects etc. Eg: if a drawer is tapped, show an image of a open drawer with a key. When they hit ‘X’, add the key to your inventory table.

  2. Add the code to ‘exit’ the room and win the level.

  3. Add the next level.

  4. Go to 2, rinse and repeat :slight_smile:

As a learner, I find it much easier to start simple and keep building on to it. It causes a few re-writes, but it’s a great learning curve.

My 2c worth.

Cheers.

Technically, it would work with both but if you are going to make player collect objects, play animations on/for objects, it would be easier with the clickable object approach.

You would probably make an array for collectable objects and then have all of the child objects collectable by a function and an event listener.

Since this appears to be your very first attempt at a game, I’d take a simple approach, and then build upon it.

As a ‘Escape the room’ concept, I’d start with the following framework.

  1. Display your ‘room’ graphic.

2a) Put some sprites down with events associated with them. (Add a tap or touch listener to a key sprite that you put on a desk.

2b) Add a rect if needed to ‘open a drawer’

  1. Add listeners to the sprites/rects etc. Eg: if a drawer is tapped, show an image of a open drawer with a key. When they hit ‘X’, add the key to your inventory table.

  2. Add the code to ‘exit’ the room and win the level.

  3. Add the next level.

  4. Go to 2, rinse and repeat :slight_smile:

As a learner, I find it much easier to start simple and keep building on to it. It causes a few re-writes, but it’s a great learning curve.

My 2c worth.

Cheers.