Hello Guest

Author Topic: Pathfinding, AI and RPG top-down games?  (Read 5966 times)

mellomike

  • Newbie
  • *
  • Posts: 3
    • View Profile
Pathfinding, AI and RPG top-down games?
« on: September 18, 2012, 09:51:51 pm »
I'm thinking about purchasing 2D Toolkit today ... but I have a few questions.

1.) With the new Tilemap features.. would I be able to make a game sort-of like the ones made with "RPG Maker" ... where I can have a tilemap and add collisions on certain tiles? I also want the player to walk left, right, up and down. I noticed most of the examples seem to be side-scroller / platformer games.

2.) With the tilemap feature, can I have layers? so that some tiles are above the main character?

3.) Can I use AI scripts and Pathfinding scripts on enemy characters/sprites in the game?

My biggest desire to use this kit is to make games such as the ones that were made with "RPG Maker". I just want to make sure I can still make those kinds of games with this kit.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Pathfinding, AI and RPG top-down games?
« Reply #1 on: September 18, 2012, 10:38:08 pm »
Hi,

I've not really used RPG maker for any period of time, but I'll try to answer your questions -

1. You set up collisions on sprites (i.e. tiles), and the system will generate an optimized collider for you. You can make the player walk left right up and down - simply spin the Unity character controller so its pointing into the screen, and switch gravity in the sample code to point into the screen and you're more or less sorted.

2. You have layers. You can set up distances between layers, and you are free to position your character wherever in 3d space. So separate the layers by 10 units, and place your character at 5, and your character will be in behind the frontmost layer but in front of the background one. Again, you have a lot of flexibility with this.

3. You will need a plane collider for the base - even if its invisible, and then it should work with most AI/Pathfinding scripts. You might run into issues where the world is on the XY plane, and some scripts might assume that everything is on the XZ plane instead, but you can work around that.

You can paint tilemaps like from the screenshots I've seen in RPG maker, and the stuff I've described above will work, and I can give you a hand if you get stuck - just post on the forums.

mellomike

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Pathfinding, AI and RPG top-down games?
« Reply #2 on: September 19, 2012, 12:12:37 am »
Thanks for the speedy reply!!! .. I'm purchasing it now.

Thanks.