Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   How do I make an Object turn? (http://www.alice.org/community/showthread.php?t=12070)

sella18 08-06-2018 02:59 AM

How do I make an Object turn?
 
I plan on making a board game. I am having a hard time with making Alice turn at corner squares when traveling around the board. I have designed it so that you roll a dice and enter the number received moving Alice that number of spaces. I have tried to make it so if she gets near an invisible object on the square she turns that only makes her turn too early and I have played with the distances. I tried to make the space trigger the turn that didn't work either. If anyone as advice on this I would appreciate it.

Dehixial 10-03-2018 07:56 AM

I feel like this could be very difficult but may work.
Have it set to variables. Such as

if
alice line one (variable) == [number of spaces before turn] turn (direction)
else
alice line one (math) + 1

and do that for all turns
also lines as in spaces going in a line across the board
i realize its stupidly complicated but its my only idea really.
sorry for difficulty lol.
I havent been doing to well with distance to/from either they seem weird.
None-the-less,
Good luck!

bodyjohn 11-02-2018 10:13 AM

[QUOTE=Dehixial;58279]I feel like this could be very difficult but may work.
Have it set to variables. Such as

if
alice line one (variable) == [number of spaces before turn] turn (direction)
else
alice line one (math) + 1

and do that for all turns
also lines as in spaces going in a line across the board
i realize its stupidly complicated but its my only idea really.
sorry for difficulty lol.
I havent been doing to well with [URL="http://best-exercise.com/"]distance[/URL] to/from either they seem weird.
None-the-less,
Good luck![/QUOTE]

this might work mate!


All times are GMT -5. The time now is 12:51 AM.

Copyright ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.