toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
how to make an actor accelerate towards another actor on its own
htl2195
Member
Posts:
26
April 2011
edited November -1
in
Working with GS (Mac)
title says it all
Comments
JohnPapiomitis
Member
Posts:
6,256
April 2011
make 2 real attribute gotox and gotoy (call them whatver you want, those are just my examples)
in the object you want the other one to be pulled to, constrain attribute gotox to self position x and cconstrain attriubte gotoy to self position y
then in the object you want to accelerate, have a accelerate towards behavior with attriute gotox in the x posiiotn, and attribute gotoy in the y
cheers
htl2195
Member
Posts:
26
April 2011
i tried that and it did not work. the actor just goes to a random point on the screen
JohnPapiomitis
Member
Posts:
6,256
April 2011
make sure the accelerate to is relative to scene. If it still doesnt work, post a screenshot of your rules because this works
cheers
htl2195
Member
Posts:
26
April 2011
thanks, i had it set relative to actor instead of scene!
Sign In
or
Register
to comment.
Comments
in the object you want the other one to be pulled to, constrain attribute gotox to self position x and cconstrain attriubte gotoy to self position y
then in the object you want to accelerate, have a accelerate towards behavior with attriute gotox in the x posiiotn, and attribute gotoy in the y
cheers
cheers