Author Topic: Encounter system  (Read 1447 times)

Agames

  • Guest
Encounter system
« on: February 04, 2014, 11:00:20 am »
How can I make an encounter system like in pokemon or final fantasy? Something where a battle pops up when walking around in a certain area

expleo

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Re: Encounter system
« Reply #1 on: February 04, 2014, 03:15:50 pm »
I guess the encounter system is the easiest part of such game. The encounter itself is random, based on an algirithm.. The more you walk, the greater the chance.  The combat itself is s container with images and buttons, I am a bit unshure what exactly is your question.

Agames

  • Guest
Re: Encounter system
« Reply #2 on: February 04, 2014, 06:57:16 pm »
Basically how can I get the new container (the one with the battle) to pop up when walking around in a specific spot?

expleo

  • Jr. Member
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Re: Encounter system
« Reply #3 on: February 05, 2014, 12:35:59 am »
Well, you should define your container with the elements you want, enemy image, healthbars, combat action buttons etc, and hide the container with containersetvisible.

Then when the player enters the spot you want the encounter to take place, you use again containersetvisible, and perhaps also disable the 'walking' view. It is all about showing and hiding the containers.

Agames

  • Guest
Re: Encounter system
« Reply #4 on: February 05, 2014, 06:58:13 am »
Ok that makes sense.  :)