@socks @wpaten thanks guys really helped!socks had a feeling you was going to be quick on the scene at answering this haha!
@Socks - *Bum bum bum* - not enough cups of coffee, eh?
@Socks - Hate it when that happens. I'll keep you in my thoughts. :bz I need one of those for my Dr. Pepper.
@socks ok i have managed to do what u said is it possible to keep actor 2 in the same position as actor 1 but slightly lower in a different place?
Damn you wpaten !!![shakes fist at sky] /insert sound FX: Thunder. 8-X
Comments
your_actor_1_leading
your_actor_2_following
You need 2 Scene Attributes (Both Real)
your_actor_x
your_actor_y
In the actor that you want to lead, you will need a constrain behavior
constrain (scene.your_actor_x) to (self.position.x)
constrain (scene.your_actor_y) to (self.position.y)
In the actor you want to follow you will also need a constrain behavior
constrain (self.position.x) to (scene.your_actor_x)
constrain (self.position.y) to (scene.your_actor_y)
That's it.
Make two game attributes:
MasterPosition X
MasterPosition Y
In actor 1 place two constrain behaviours:
Constrain MasterPosition X to self position X
Constrain MasterPosition Y to self position Y
In actor 2 place two constrain behaviours:
Constrain self position X to MasterPosition X
Constrain self position Y to MasterPosition Y
socks had a feeling you was going to be quick on the scene at answering this haha!
Not quick enough ! 8-X
or whatever number you want it lowered by.
[shakes fist at sky] /insert sound FX: Thunder. 8-X
Here's some constrain stuff I coincidently posted yesterday in the 'spare code' thread: (there's an offset just like you want in there)
http://www.mediafire.com/?9fld3cme7oc7d3o