Random Angle to right

sparkzillasparkzilla Member Posts: 152
edited November -1 in Working with GS (Mac)
Hi, is there a simple expression that I can use to make an actor move in a random angle to the right. If you just do random (90, 270) the actor will move left.

But if you want it to move to the right you will need it to generate a number between 270 to 360 AND 0 to 90.

__________________

Coming Soon!: Sweepr

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    Have you tried...random 270-450? adding the 90 to the 360...not sure if it will work but worth a go?

    Darren.
  • sparkzillasparkzilla Member Posts: 152
    Thanks Darren, that works great!

    __________________

    Coming Soon!: Sweepr
  • sparkzillasparkzilla Member Posts: 152
    BTW Darren, do you have a downloadable version of your CoverFlow Lite demo?
Sign In or Register to comment.