accelerate toward and random issue

tufiretufire Member, PRO Posts: 17
so i have an actor how random accelerates toward a position.


In accelerate toward
I have x=random(10,558) y=10

for some reason it just gives the middle of the 2 number (min and max). all the actors are heading toward 274 i think.

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Hi @tufire

    Try something like this: make an integer attribute, let's call it xPos

    Change Attribute xPos to random(10,558)

    In Accelerate Towards behaviour:

    Position x to be xPos position y to be 10

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • tufiretufire Member, PRO Posts: 17
    i just switched it out accelerate for another behavior
Sign In or Register to comment.