SOLVED: Character follow character exactly y position question

Started by Slasher, Thu 22/11/2012 18:45:27

Previous topic - Next topic

Slasher

Similar questions have been asked but i need to figure this out:

Player is holding a basket trying to catch falling things.

Both the main player and basket are 'characters'.

Using FOLLOW_EXACTLY works as it should, except I require the 'following' character (basket) y to be at middle of main player as if he is carrying basket at waist level and not at his feet.

The reason I am doing this is that there will be a collide test with the basket and not the main player.

Meanwhile I will keep looking into this

thanks

EDIT: This seems to do the job (No FOLLOW_EXACTLY):
Code: AGS

function repeatedly_execute_always()
{
 cbasket.x=player.x -8;
 cbasket.y=player.y -36;
}



SMF spam blocked by CleanTalk