View Single Post
Old
RavenOfCode
Senior Member
 
RavenOfCode's Avatar
 
Status: Offline
Posts: 408
Join Date: Oct 2013
Location: Northern Virginia
Default 02-27-2016, 08:32 PM

Quote:
Originally Posted by KsMomof2 View Post
Specifically I am trying to create a dance method that imitates "The Twist" in version 3.

The joints have to turn left, then right ... OR ... right then left. I want to make the dance work so that some objects start turning left first, and others turning right ... so, I want to send the turn direction in as a parameter, and then in the method, I want to use the opposite direction - which requires knowing which direction was sent in.

Because I could not figure out how to compare the direction, I solved the problem by just sending in a first direction and a second direction - but, that is ... ugly in my mind. I would still like to learn how to compare the directions.
Send in a bool and compare that.


Stuff + Other Stuff + Different Other Stuff = Things :)

My best Alice game:

Clash of the Cubes (an arena fighting game):
http://www.alice.org/community/showthread.php?t=10738&highlight=game
   
Reply With Quote