00:00
00:00
Newgrounds Background Image Theme

SpeakyDooman just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Making a turn based grid movement

590 Views | 2 Replies
New Topic Respond to this Topic

Making a turn based grid movement 2015-07-09 18:32:19


Hi guys, i'm an amateur as3 programmer and i want to make a simple turn based game, so i need to position a "player 1" and "player 2" which would be a simple circle on a grid,each of them will move once.

I believe i have to use an array, someone can help me with this issue?, how should i start?

Response to Making a turn based grid movement 2015-07-11 08:53:12


You can start with an array which holds the player positions of course but since you have only two objects (player 1-2) you don't need that. Grid based movement can be easy achieved by setting the player sprite.x + gridSize or if you need to calculate the grid position from other coordinates you can do sprite.x = newPosition.x%gridSize.

Response to Making a turn based grid movement 2015-09-30 04:21:57


At 7/9/15 06:32 PM, leomachado666 wrote: Hi guys, i'm an amateur as3 programmer and i want to make a simple turn based game, so i need to position a "player 1" and "player 2" which would be a simple circle on a grid,each of them will move once.

I believe i have to use an array, someone can help me with this issue?, how should i start?

"Mythiventures (Heroes Tactics)" is pretty awesome.

It's like a combination of HOMM, FF Tactics, and Heroes Charge. Turned based strategy (Tactical RPG, Tactical strategy)

Just recently launched on Google Play: https://play.google.com/store/apps/details?id=com.camexgame.heroes.

Their website is https://www.heroestactics.com

Making a turn based grid movement