Map zones

0 favourites
  • 3 posts
From the Asset Store
Create your own adventure map with this easy to use asset pack.
  • Hi,

    I would like share my thoughts about how handle this. The game idea is like a Risk game.

    Q1

    I have a map with many regions.

    What is best? Each region one sprite or the whole map as background and on top transparents sprites for each zone?

    Q2

    The user touch one region and I need select the destination regions from the touched region.

    The destinations should be selected in function of the action points (AP) that the player left available.

    For this I think this approach.

    1. Create an array for each region where the values are the posibles destination regions.

    For the posibles destinations I need store the AP that must be required to enter into and subtract from the player AP.

    2. Only highlighted regions can be touched, so I think put a variable that is put to true or false to examine if is posible touch it.

    3. If the movement is posible move the player chip.

    How is best to create the arrays? for each sprite? or globally? I guess that is better globally to share positions but then I have the doubt about how identify each sprite ID when the player touch it.

    Thoughts?

    Salut,

    Josep M

  • Hi,

    I would like share my thoughts about how handle this. The game idea is like a Risk game.

    Q1

    I have a map with many regions.

    What is best? Each region one sprite or the whole map as background and on top transparents sprites for each zone?

    Q2

    The user touch one region and I need select the destination regions from the touched region.

    The destinations should be selected in function of the action points (AP) that the player left available.

    For this I think this approach.

    1. Create an array for each region where the values are the posibles destination regions.

    For the posibles destinations I need store the AP that must be required to enter into and subtract from the player AP.

    2. Only highlighted regions can be touched, so I think put a variable that is put to true or false to examine if is posible touch it.

    3. If the movement is posible move the player chip.

    How is best to create the arrays? for each sprite? or globally? I guess that is better globally to share positions but then I have the doubt about how identify each sprite ID when the player touch it.

    Thoughts?

    Salut,

    Josep M

    frist..i don't suggest to use arrays,you may try Dictionary or just add new value on every region(suggest this)

    You said your game's region will have Different(Can touch/Can't touch)..so"Each region one sprite "

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok. How I add a dictionary for each sprite. I read the documentation and not see that. I guess is a global variable.

    Can I add an array into the dictionary?

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