TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Need help with calculating board position
Pages:
1
Need help with calculating board position
comport9
Posts: 51
December 24, 2012, 08:54:51 pm
Alright, my board game is 8 x 8 like checkers. I need to calculate if an opponents piece is "surrounded" by two of the active players pieces. Either horizontally, vertically, or diagonally.
Thanks.
shotfrost
Posts: 221
December 25, 2012, 03:01:37 am
You can check for an area around that actor,using either calculate distance or region.Using a number attribute to count the number of chess piece around you.
Try my new game here:
http://www.newgrounds.com/portal/view/624384
http://www.kongregate.com/games/ShotFrost/v-creations
Pages:
1