Grid Based Movement System (pokemon like)

Hey guys,

I have been thinking of making a turn based rpg with similar movement to pokemon games. However I am not sure where to start with the grid system. Movement will be in four directions (N, S, E, W) and Im wanting the movement from grid point to gridpoint to be smooth transition. Similar to the pokemon games for game boy...

Im not wanting anyone to write the script for me, but if anyone has any suggestions on what the best way to do a grid movement system please help me out.

Also once the system is complete, how would I go about making the maps actually work, such as the tiles that you can move into and the ones u cant move thru...

Again any help on this would be greatly appreciated and I am trying to pretty much mimic the movement from Pokemon games...

Thanks again!

more ▼

asked May 08, 2011 at 06:49 PM

avatar image

162 39 30 40

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

GridMove. You can use an array to represent the world, in order to do impassable tiles etc.

more ▼

answered May 08, 2011 at 06:53 PM

avatar image

121k 77 358 773

Thanks Eric, I completely forgot to check unifycommunity ><

Asfar as the array to represent the world, im assuming it would be a 2D array..and would it be viable to use ints to represent what the grid space is IE: 0 = moveable 1 = obstacle?

Thanks again man

May 09, 2011 at 06:36 PM unitydev0008

Yes, a 2D array would be easiest, and using ints is OK.

May 09, 2011 at 08:23 PM Eric5h5
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: May 08, 2011 at 06:49 PM

Seen: 5493 times

Last Updated: May 08, 2011 at 06:49 PM