21
Coding / help(GM6):pickup object following character
« on: January 25, 2007, 12:03:00 am »
When I pickup an object and try to run with it, the object cant keep up with the player. Heres the position code in the step event of the pickedup object.
if (held){
x = object939.x;
y = object939.y-10+alteration;
depth = object939.depth-1;
}
Alteration is the direction in which to throw(will probably get around to changing to the global direction). Ive kind of been blowing this off because the pickup/throw works near to perfect, but I'm at the stage to where I need to get it done. Any takers?
if (held){
x = object939.x;
y = object939.y-10+alteration;
depth = object939.depth-1;
}
Alteration is the direction in which to throw(will probably get around to changing to the global direction). Ive kind of been blowing this off because the pickup/throw works near to perfect, but I'm at the stage to where I need to get it done. Any takers?